[Libreoffice-commits] core.git: comphelper/source

Stephan Bergmann sbergman at redhat.com
Wed Mar 27 04:55:29 PDT 2013


 comphelper/source/misc/accimplaccess.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 787bdc61ddf169c562002ecfe07025c1b8e8a2ef
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Mar 27 12:55:05 2013 +0100

    -Werror=unused-macros
    
    Change-Id: I8548078dd6b9fc3555bfb5e23a683879ee3de3fa

diff --git a/comphelper/source/misc/accimplaccess.cxx b/comphelper/source/misc/accimplaccess.cxx
index f70fa54..32e4cec 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;


More information about the Libreoffice-commits mailing list