diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-03-27 12:55:05 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-03-27 12:55:05 +0100 |
commit | 787bdc61ddf169c562002ecfe07025c1b8e8a2ef (patch) | |
tree | 718b07c3c0c4479811787548436b2173986af1d5 /comphelper | |
parent | 6a6aa4b9249027a168db42ccff877e34e44d3872 (diff) |
-Werror=unused-macros
Change-Id: I8548078dd6b9fc3555bfb5e23a683879ee3de3fa
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/accimplaccess.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/comphelper/source/misc/accimplaccess.cxx b/comphelper/source/misc/accimplaccess.cxx index f70fa5498cc9..32e4cecc244b 100644 --- a/comphelper/source/misc/accimplaccess.cxx +++ b/comphelper/source/misc/accimplaccess.cxx @@ -30,9 +30,6 @@ namespace comphelper { //......................................................................... -#define BITFIELDSIZE ( sizeof( sal_Int64 ) * 8 ) - // maximum number of bits we have in a sal_Int64 - using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Sequence; using ::com::sun::star::uno::Exception; @@ -89,7 +86,7 @@ namespace comphelper //--------------------------------------------------------------------- void OAccessibleImplementationAccess::setStateBit( const sal_Int16 _nState, const sal_Bool _bSet ) { - OSL_ENSURE( _nState >= 0 && static_cast< sal_uInt16 >(_nState) < BITFIELDSIZE, "OAccessibleImplementationAccess::setStateBit: no more bits (shutting down the universe now)!" ); + OSL_ENSURE( _nState >= 0 && static_cast< sal_uInt16 >(_nState) < sizeof( sal_Int64 ) * 8, "OAccessibleImplementationAccess::setStateBit: no more bits (shutting down the universe now)!" ); sal_uInt64 nBitMask( 1 ); nBitMask <<= _nState; |