summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-10-13 08:02:22 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-10-13 08:17:42 +0000
commit192edafdd0e0ce38665d14022b4511eba1a9c954 (patch)
treeeae241bfc054a204d624454a4ac8601cedb286c5 /sw
parent9125a4f3f63a7f49fd307908c181e999120063e0 (diff)
sw: remove useless debug code in SwTextMargin::CtorInitTextMargin()
Change-Id: I15bde2652ca39c2ea43036557c36b77c5ead0d32 Reviewed-on: https://gerrit.libreoffice.org/29750 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/pagechg.cxx2
-rw-r--r--sw/source/core/text/itrcrsr.cxx8
2 files changed, 1 insertions, 9 deletions
diff --git a/sw/source/core/layout/pagechg.cxx b/sw/source/core/layout/pagechg.cxx
index 720a541631b8..0257f12721e5 100644
--- a/sw/source/core/layout/pagechg.cxx
+++ b/sw/source/core/layout/pagechg.cxx
@@ -1528,7 +1528,7 @@ void SwRootFrame::AssertPageFlys( SwPageFrame *pPage )
// It can move by itself. Just send a modify to its anchor attribute.
#if OSL_DEBUG_LEVEL > 1
const size_t nCnt = pPage->GetSortedObjs()->size();
- rFormat.NotifyClients( 0, (SwFormatAnchor*)&rAnch );
+ rFormat.NotifyClients( nullptr, &rAnch );
OSL_ENSURE( !pPage->GetSortedObjs() ||
nCnt != pPage->GetSortedObjs()->size(),
"Object couldn't be reattached!" );
diff --git a/sw/source/core/text/itrcrsr.cxx b/sw/source/core/text/itrcrsr.cxx
index 68fde89896f3..884e5ce50a03 100644
--- a/sw/source/core/text/itrcrsr.cxx
+++ b/sw/source/core/text/itrcrsr.cxx
@@ -344,14 +344,6 @@ void SwTextMargin::CtorInitTextMargin( SwTextFrame *pNewFrame, SwTextSizeInfo *p
// #i91133#
mnTabLeft = pNode->GetLeftMarginForTabCalculation();
-#if OSL_DEBUG_LEVEL > 1
- static bool bOne = false;
- static bool bLast = false;
- static bool bCenter = false;
- bOneBlock |= bOne;
- bLastBlock |= bLast;
- bLastCenter |= bCenter;
-#endif
DropInit();
}