[Libreoffice-commits] .: svl/source

Tor Lillqvist tml at kemper.freedesktop.org
Fri Sep 30 00:52:40 PDT 2011


 svl/source/undo/undo.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 58462caa5164af85d801e73c36672d61cddb53fd
Author: Tor Lillqvist <tml at iki.fi>
Date:   Fri Sep 30 10:41:14 2011 +0300

    Fix error reported by gcc 4.4.3: NULL used in arithmetic

diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index a84bbcf..3e4d4db 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -267,13 +267,13 @@ namespace svl { namespace undo { namespace impl
 
         bool is() const
         {
-            return ( m_notificationMethod != NULL ) || ( m_altNotificationMethod != NULL );
+            return ( m_notificationMethod != 0 ) || ( m_altNotificationMethod != 0 );
         }
 
         void operator()( SfxUndoListener* i_listener ) const
         {
             OSL_PRECOND( is(), "NotifyUndoListener: this will crash!" );
-            if ( m_altNotificationMethod != NULL )
+            if ( m_altNotificationMethod != 0 )
             {
                 ( i_listener->*m_altNotificationMethod )( m_sActionComment );
             }


More information about the Libreoffice-commits mailing list