summaryrefslogtreecommitdiffstats
path: root/cui
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-03-13 22:28:52 +0100
committerMichael Stahl <mstahl@redhat.com>2013-03-13 22:29:46 +0100
commit38d3e115c159f19f22de73ece1abe609d75a041e (patch)
tree63ffe74cb9b8fcc52617b616d02cc2504a0d0e11 /cui
parentcoverity#704144: Resource leak in object (diff)
downloadcore-38d3e115c159f19f22de73ece1abe609d75a041e.tar.gz
core-38d3e115c159f19f22de73ece1abe609d75a041e.zip
vcl: make Region ctors explicit to prevent overloading desasters
Change-Id: Id36d125b4940418833bec31a4710d6cd545629e0
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/about.cxx2
-rw-r--r--cui/source/options/connpooloptions.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx
index 9c247d3dcdfc..e904d0f04ac1 100644
--- a/cui/source/dialogs/about.cxx
+++ b/cui/source/dialogs/about.cxx
@@ -429,7 +429,7 @@ void AboutDialog::MoveControl(Control& rControl, sal_Int32 X, sal_Int32 Y)
void AboutDialog::Paint( const Rectangle& rRect )
{
- SetClipRegion( rRect );
+ SetClipRegion(Region(rRect));
Point aPos ( rRect.GetWidth() - aBackgroundBitmap.GetSizePixel().Width(), rRect.GetHeight() - aBackgroundBitmap.GetSizePixel().Height() );
DrawBitmapEx( aPos, aBackgroundBitmap );
}
diff --git a/cui/source/options/connpooloptions.cxx b/cui/source/options/connpooloptions.cxx
index 381a8f4fda9b..0745f8f9ef96 100644
--- a/cui/source/options/connpooloptions.cxx
+++ b/cui/source/options/connpooloptions.cxx
@@ -294,7 +294,7 @@ namespace offapp
if (m_aSeekRow != m_aSettings.end())
{
- rDev.SetClipRegion(rRect);
+ rDev.SetClipRegion(Region(rRect));
sal_uInt16 nStyle = TEXT_DRAW_CLIP;
if (!IsEnabled())