summaryrefslogtreecommitdiff
path: root/sw/source/uibase/envelp/syncbtn.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-24 13:39:29 +0200
committerNoel Grandin <noel@peralex.com>2015-08-25 08:39:03 +0200
commit219b50a284a9fab6e5eb72efee54a72e15ac1bec (patch)
treea40f8c6bb599f2746a3a250bfb74c4b315eb33c5 /sw/source/uibase/envelp/syncbtn.cxx
parenta9ea1295a668feca4bfb9b2a53a92890177b5371 (diff)
make pWindow private in SfxChildWindow
Change-Id: I585d4e8f0a53f46b6fbcef9e4d26f88b57569684
Diffstat (limited to 'sw/source/uibase/envelp/syncbtn.cxx')
-rw-r--r--sw/source/uibase/envelp/syncbtn.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/uibase/envelp/syncbtn.cxx b/sw/source/uibase/envelp/syncbtn.cxx
index fd1b66ec0b6c..fe5984f65bce 100644
--- a/sw/source/uibase/envelp/syncbtn.cxx
+++ b/sw/source/uibase/envelp/syncbtn.cxx
@@ -37,7 +37,7 @@ SwSyncChildWin::SwSyncChildWin( vcl::Window* _pParent,
SfxChildWinInfo* pInfo ) :
SfxChildWindow( _pParent, nId )
{
- pWindow = VclPtr<SwSyncBtnDlg>::Create( pBindings, this, _pParent);
+ SetWindow(VclPtr<SwSyncBtnDlg>::Create( pBindings, this, _pParent));
if (!pInfo->aSize.Width() || !pInfo->aSize.Height())
{
@@ -45,17 +45,17 @@ SwSyncChildWin::SwSyncChildWin( vcl::Window* _pParent,
if(pActiveView)
{
const SwEditWin &rEditWin = pActiveView->GetEditWin();
- pWindow->SetPosPixel(rEditWin.OutputToScreenPixel(Point(0, 0)));
+ GetWindow()->SetPosPixel(rEditWin.OutputToScreenPixel(Point(0, 0)));
}
else
- pWindow->SetPosPixel(_pParent->OutputToScreenPixel(Point(0, 0)));
- pInfo->aPos = pWindow->GetPosPixel();
- pInfo->aSize = pWindow->GetSizePixel();
+ GetWindow()->SetPosPixel(_pParent->OutputToScreenPixel(Point(0, 0)));
+ pInfo->aPos = GetWindow()->GetPosPixel();
+ pInfo->aSize = GetWindow()->GetSizePixel();
}
- static_cast<SwSyncBtnDlg *>(pWindow.get())->Initialize(pInfo);
+ static_cast<SwSyncBtnDlg *>(GetWindow())->Initialize(pInfo);
- pWindow->Show();
+ GetWindow()->Show();
}
SwSyncBtnDlg::SwSyncBtnDlg( SfxBindings* _pBindings,