Fix error reported by gcc 4.4.3: NULL used in arithmetic
This commit is contained in:
parent
2414639738
commit
58462caa51
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue