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

Caolán McNamara caolanm at redhat.com
Mon May 11 02:44:41 PDT 2015


 sw/source/core/docnode/nodes.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 795a9b32b59793e980e482a091e32217ed89bcf5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon May 11 09:45:53 2015 +0100

    assert needs pFirst, to use NDEBUG here
    
    Change-Id: I435d887c4763bfbb4a24e9d34252a85967ef8947

diff --git a/sw/source/core/docnode/nodes.cxx b/sw/source/core/docnode/nodes.cxx
index 380c103..dd47eab 100644
--- a/sw/source/core/docnode/nodes.cxx
+++ b/sw/source/core/docnode/nodes.cxx
@@ -2211,7 +2211,7 @@ void SwNodes::ForEach( const SwNodeIndex& rStart, const SwNodeIndex& rEnd,
 void SwNodes::RemoveNode( sal_uLong nDelPos, sal_uLong nSz, bool bDel )
 {
     {
-#if OSL_DEBUG_LEVEL > 0
+#ifndef NDEBUG
         SwNode *const pFirst((*this)[nDelPos]);
 #endif
         for (sal_uLong nCnt = 0; nCnt < nSz; nCnt++)


More information about the Libreoffice-commits mailing list