[Libreoffice-commits] .: svl/source

Caolán McNamara caolan at kemper.freedesktop.org
Fri Mar 18 09:51:03 PDT 2011


 svl/source/undo/undo.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 839017a3794c08889c218f9cc226319f0c5370fd
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Mar 18 16:50:58 2011 +0000

    WaE: returning NULL for sal_uInt16

diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index 55355eb..03c970a 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -712,7 +712,7 @@ sal_uInt16 SfxUndoManager::GetUndoActionId() const
 
     DBG_ASSERT( m_pData->pActUndoArray->nCurUndoAction > 0, "svl::SfxUndoManager::GetUndoActionId(), illegal id!" );
     if ( m_pData->pActUndoArray->nCurUndoAction == 0 )
-        return NULL;
+        return 0;
     return m_pData->pActUndoArray->aUndoActions[m_pData->pActUndoArray->nCurUndoAction-1].pAction->GetId();
 }
 


More information about the Libreoffice-commits mailing list