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

Jochen Nitschke j.nitschke+logerrit at ok.de
Fri Jan 27 10:03:51 UTC 2017


 sw/source/core/text/inftxt.cxx |    5 -----
 sw/source/core/text/inftxt.hxx |    4 ----
 2 files changed, 9 deletions(-)

New commits:
commit 547ceda8ff3bcfb8346e590fbff89c4d887ccab1
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Fri Jan 27 09:50:24 2017 +0100

    remove unused debug code
    
    unused since commit 9585c8b8c8d8724cc1bad4a2060c828c15599929
    Date:   Tue Mar 22 10:58:54 2016 +0200
        loplugin:constantparam in sw
    
    Change-Id: I8469619fb70583170ea5cc8d4d03464335af2d28
    Reviewed-on: https://gerrit.libreoffice.org/33609
    Reviewed-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>
    Tested-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>

diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx
index 58ee0c4..ac87b78 100644
--- a/sw/source/core/text/inftxt.cxx
+++ b/sw/source/core/text/inftxt.cxx
@@ -489,12 +489,7 @@ void SwTextPaintInfo::CtorInitTextPaintInfo( OutputDevice* pRenderContext, SwTex
     pWrongList = nullptr;
     pGrammarCheckList = nullptr;
     pSmartTags = nullptr;
-
-#if OSL_DEBUG_LEVEL > 1
-    pBrushItem = reinterpret_cast<SvxBrushItem*>(-1);
-#else
     pBrushItem = nullptr;
-#endif
 }
 
 SwTextPaintInfo::SwTextPaintInfo( const SwTextPaintInfo &rInf, const OUString* pText )
diff --git a/sw/source/core/text/inftxt.hxx b/sw/source/core/text/inftxt.hxx
index 7170e20..720d3fb 100644
--- a/sw/source/core/text/inftxt.hxx
+++ b/sw/source/core/text/inftxt.hxx
@@ -376,11 +376,7 @@ protected:
         , pGrammarCheckList(nullptr)
         , pSmartTags(nullptr)
         , pSpaceAdd(nullptr)
-#ifdef DBG_UTIL
-        , pBrushItem(reinterpret_cast<SvxBrushItem*>(-1))
-#else
         , pBrushItem(nullptr)
-#endif
         , nSpaceIdx(0)
         {}
 


More information about the Libreoffice-commits mailing list