diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-08 22:55:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-09 09:23:10 +0100 |
commit | 4a2402bb4eda66268a4624f1e5b974672175402f (patch) | |
tree | a11ddac88a63469fb01903ebe4084d0697fe66bb /sfx2 | |
parent | 4388c7cab48d3b8ac40e33223e1b5155316f669a (diff) |
size arg can be const
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/childwin.hxx | 3 | ||||
-rw-r--r-- | 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 @@ -325,14 +325,6 @@ void SfxChildWindow::SetAlignment(SfxChildAlignment eAlign) } //------------------------------------------------------------------------- -void SfxChildWindow::SetPosSizePixel(const Point& rPoint, Size& rSize) -{ - DBG_CHKTHIS(SfxChildWindow,0); - - pWindow->SetPosSizePixel(rPoint, rSize); -} - -//------------------------------------------------------------------------- SfxChildWinInfo SfxChildWindow::GetInfo() const { DBG_CHKTHIS(SfxChildWindow,0); |