Kaydet (Commit) 192edafd authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: remove useless debug code in SwTextMargin::CtorInitTextMargin()

Change-Id: I15bde2652ca39c2ea43036557c36b77c5ead0d32
Reviewed-on: https://gerrit.libreoffice.org/29750Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst 9125a4f3
......@@ -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!" );
......
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment