summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-08-29 15:25:30 +0200
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2016-08-29 17:31:26 +0000
commit7dcbcfcf21cb05a606ab8954abf7c3fddda2c4fe (patch)
treef8743e5bae4f46810c0682e662c126086c51eaf2 /sfx2
parente2c240627c8a1a9cea1f9eedfb064214c8e93a39 (diff)
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>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/dockwin.cxx55
1 files changed, 23 insertions, 32 deletions
diff --git a/sfx2/source/dialog/dockwin.cxx b/sfx2/source/dialog/dockwin.cxx
index b9fb2c28287a..137ad50c3181 100644
--- a/sfx2/source/dialog/dockwin.cxx
+++ b/sfx2/source/dialog/dockwin.cxx
@@ -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.