From 4a2402bb4eda66268a4624f1e5b974672175402f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 8 Sep 2011 22:55:57 +0100 Subject: [PATCH] size arg can be const --- sfx2/inc/sfx2/childwin.hxx | 3 ++- sfx2/source/appl/childwin.cxx | 8 -------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/sfx2/inc/sfx2/childwin.hxx b/sfx2/inc/sfx2/childwin.hxx index ae7552d29310..887ea6e1124e 100644 --- a/sfx2/inc/sfx2/childwin.hxx +++ b/sfx2/inc/sfx2/childwin.hxx @@ -189,7 +189,8 @@ public: void SetAlignment(SfxChildAlignment eAlign); Size GetSizePixel() const { return pWindow->GetSizePixel(); } - void SetPosSizePixel(const Point& rPoint, Size& rSize); + void SetPosSizePixel(const Point& rPoint, const Size& rSize) + { pWindow->SetPosSizePixel(rPoint, rSize); } Point GetPosPixel() { return pWindow->GetPosPixel(); } virtual void Hide(); diff --git a/sfx2/source/appl/childwin.cxx b/sfx2/source/appl/childwin.cxx index 437d188d3681..dc321dbc94e5 100644 --- a/sfx2/source/appl/childwin.cxx +++ b/sfx2/source/appl/childwin.cxx @@ -324,14 +324,6 @@ void SfxChildWindow::SetAlignment(SfxChildAlignment eAlign) eChildAlignment = eAlign; } -//------------------------------------------------------------------------- -void SfxChildWindow::SetPosSizePixel(const Point& rPoint, Size& rSize) -{ - DBG_CHKTHIS(SfxChildWindow,0); - - pWindow->SetPosSizePixel(rPoint, rSize); -} - //------------------------------------------------------------------------- SfxChildWinInfo SfxChildWindow::GetInfo() const {