diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-03-13 22:28:52 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-03-13 22:29:46 +0100 |
commit | 38d3e115c159f19f22de73ece1abe609d75a041e (patch) | |
tree | 63ffe74cb9b8fcc52617b616d02cc2504a0d0e11 /vcl/source/control | |
parent | 913f175b321caf7a99957fd7c4dc536f4101ab53 (diff) |
vcl: make Region ctors explicit to prevent overloading desasters
Change-Id: Id36d125b4940418833bec31a4710d6cd545629e0
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/spinbtn.cxx | 4 | ||||
-rw-r--r-- | vcl/source/control/spinfld.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/control/spinbtn.cxx b/vcl/source/control/spinbtn.cxx index 20aac8e68934..897c04216f61 100644 --- a/vcl/source/control/spinbtn.cxx +++ b/vcl/source/control/spinbtn.cxx @@ -505,13 +505,13 @@ long SpinButton::PreNotify( NotifyEvent& rNEvt ) Region aRgn( GetActiveClipRegion() ); if( pLastRect ) { - SetClipRegion( *pLastRect ); + SetClipRegion(Region(*pLastRect)); Paint( *pLastRect ); SetClipRegion( aRgn ); } if( pRect ) { - SetClipRegion( *pRect ); + SetClipRegion(Region(*pRect)); Paint( *pRect ); SetClipRegion( aRgn ); } diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index 604c386587ba..d50c521b84f0 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -117,7 +117,7 @@ sal_Bool ImplDrawNativeSpinfield( Window *pWin, const SpinbuttonValue& rSpinbutt bNativeOK = pBorder->DrawNativeControl( CTRL_SPINBOX, PART_ENTIRE_CONTROL, aRgn, CTRL_STATE_ENABLED, rSpinbuttonValue, rtl::OUString() ); - pBorder->SetClipRegion( oldRgn ); + pBorder->SetClipRegion(Region(oldRgn)); } } return bNativeOK; @@ -925,13 +925,13 @@ long SpinField::PreNotify( NotifyEvent& rNEvt ) Region aRgn( GetActiveClipRegion() ); if( pLastRect ) { - SetClipRegion( *pLastRect ); + SetClipRegion(Region(*pLastRect)); Paint( *pLastRect ); SetClipRegion( aRgn ); } if( pRect ) { - SetClipRegion( *pRect ); + SetClipRegion(Region(*pRect)); Paint( *pRect ); SetClipRegion( aRgn ); } |