summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-07-09 08:50:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-07-13 18:14:11 +0200
commitcbce40e965acef51822b31d73da5fbc271fbcad0 (patch)
treebad77c67c68055f7597b8ecf1df1b74e778873cf /sw
parent429280541ff1fbbbf3f0482211a659c96c3347d2 (diff)
Make content of OSL_ASSERT, DBG_ASSERT, etc. visiblie in non-debug builds
...to avoid lots of loplugin:staticmethods warnings. Also enables DBG_ASSERT etc. also for --enable-debug builds in addition to --enable-dbgutil builds. Change-Id: Ib89ecd9ab8ce7abb2c64790ace248b31f9d2b64d
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/xml/XMLRedlineImportHelper.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.cxx b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
index 15d522b8467d..81290dc4e980 100644
--- a/sw/source/filter/xml/XMLRedlineImportHelper.cxx
+++ b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
@@ -141,10 +141,7 @@ void XTextRangeOrNodeIndexPosition::SetAsNodeIndex(
// SwXTextRange -> PaM
SwUnoInternalPaM aPaM(*pDoc);
-#if OSL_DEBUG_LEVEL > 0
- bool bSuccess =
-#endif
- ::sw::XTextRangeToSwPaM(aPaM, rRange);
+ bool bSuccess = ::sw::XTextRangeToSwPaM(aPaM, rRange);
OSL_ENSURE(bSuccess, "illegal range");
// PaM -> Index
@@ -160,10 +157,7 @@ XTextRangeOrNodeIndexPosition::CopyPositionInto(SwPosition& rPos, SwDoc & rDoc)
if (NULL == pIndex)
{
SwUnoInternalPaM aUnoPaM(rDoc);
-#if OSL_DEBUG_LEVEL > 0
- bool bSuccess =
-#endif
- ::sw::XTextRangeToSwPaM(aUnoPaM, xRange);
+ bool bSuccess = ::sw::XTextRangeToSwPaM(aUnoPaM, xRange);
OSL_ENSURE(bSuccess, "illegal range");
rPos = *aUnoPaM.GetPoint();