cppcheck:noConstructor for SfxDockingWindow_Impl

Change-Id: I20d2c5351d7f4d3fd4c42ccc0528afd4c45d4426
Reviewed-on: https://gerrit.libreoffice.org/28461
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
This commit is contained in:
Jochen Nitschke
2016-08-29 15:25:30 +02:00
parent e2c240627c
commit 7dcbcfcf21

View File

@@ -406,6 +406,7 @@ friend class SfxDockingWindow;
bool bDockingPrevented;
OString aWinState;
SfxDockingWindow_Impl(SfxDockingWindow *pBase);
SfxChildAlignment GetLastAlignment() const
{ return eLastAlignment; }
void SetLastAlignment(SfxChildAlignment eAlign)
@@ -416,6 +417,26 @@ friend class SfxDockingWindow;
{ eDockAlignment = eAlign; }
};
SfxDockingWindow_Impl::SfxDockingWindow_Impl(SfxDockingWindow* pBase)
:eLastAlignment(SfxChildAlignment::NOALIGNMENT)
,eDockAlignment(SfxChildAlignment::NOALIGNMENT)
,bConstructed(false)
,pSplitWin(nullptr)
,bSplitable(true)
,bEndDocked(false)
,nHorizontalSize(0)
,nVerticalSize(0)
,nLine(0)
,nPos(0)
,nDockLine(0)
,nDockPos(0)
,bNewLine(false)
,bDockingPrevented(false)
{
aMoveIdle.SetPriority(SchedulerPriority::RESIZE);
aMoveIdle.SetIdleHdl(LINK(pBase,SfxDockingWindow,TimerHdl));
}
/* [Description]
This virtual method of the class FloatingWindow keeps track of changes in
@@ -814,22 +835,7 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW,
pBindings(pBindinx),
pMgr(pCW)
{
pImpl.reset( new SfxDockingWindow_Impl );
pImpl->bConstructed = false;
pImpl->pSplitWin = nullptr;
pImpl->bEndDocked = false;
pImpl->bDockingPrevented = false;
pImpl->bSplitable = true;
// Initially set to default, the alignment is set in the subclass
pImpl->nLine = pImpl->nDockLine = 0;
pImpl->nPos = pImpl->nDockPos = 0;
pImpl->bNewLine = false;
pImpl->SetDockAlignment(SfxChildAlignment::NOALIGNMENT);
pImpl->SetLastAlignment(SfxChildAlignment::NOALIGNMENT);
pImpl->aMoveIdle.SetPriority(SchedulerPriority::RESIZE);
pImpl->aMoveIdle.SetIdleHdl(LINK(this,SfxDockingWindow,TimerHdl));
pImpl.reset(new SfxDockingWindow_Impl(this));
}
/** Constructor for the SfxDockingWindow class. A SfxChildWindow will be
@@ -841,22 +847,7 @@ SfxDockingWindow::SfxDockingWindow( SfxBindings *pBindinx, SfxChildWindow *pCW,
, pBindings(pBindinx)
, pMgr(pCW)
{
pImpl.reset( new SfxDockingWindow_Impl );
pImpl->bConstructed = false;
pImpl->pSplitWin = nullptr;
pImpl->bEndDocked = false;
pImpl->bDockingPrevented = false;
pImpl->bSplitable = true;
// Initially set to default, the alignment is set in the subclass
pImpl->nLine = pImpl->nDockLine = 0;
pImpl->nPos = pImpl->nDockPos = 0;
pImpl->bNewLine = false;
pImpl->SetDockAlignment(SfxChildAlignment::NOALIGNMENT);
pImpl->SetLastAlignment(SfxChildAlignment::NOALIGNMENT);
pImpl->aMoveIdle.SetPriority(SchedulerPriority::RESIZE);
pImpl->aMoveIdle.SetIdleHdl(LINK(this,SfxDockingWindow,TimerHdl));
pImpl.reset(new SfxDockingWindow_Impl(this));
}
/** Initialization of the SfxDockingDialog class via a SfxChildWinInfo.