summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-10-26 23:15:06 +0200
committerMichael Stahl <mstahl@redhat.com>2017-10-26 23:17:45 +0200
commit11d2f3d6e1b6c9baf43d8521293c53525108436d (patch)
treeffe35d5d47713a11c93c3bf11f588eeaf492fc16 /vcl/source/control
parent213f7c02d4f3ddbe2f52950575e2559c52d98ac2 (diff)
vcl: make MapMode constructor explicit
Insert constructor everywhere, except a couple places that apparently want to compare GetMapUnit(). Change-Id: I1910deb60562e5e949203435e827057f70a3f988
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/button.cxx4
-rw-r--r--vcl/source/control/listctrl.cxx2
-rw-r--r--vcl/source/control/morebtn.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 8aa2cebc4f1b..875734f51d15 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -2807,7 +2807,7 @@ Image RadioButton::GetRadioImage( const AllSettings& rSettings, DrawButtonFlags
void RadioButton::ImplSetMinimumNWFSize()
{
Push( PushFlags::MAPMODE );
- SetMapMode( MapUnit::MapPixel );
+ SetMapMode(MapMode(MapUnit::MapPixel));
ImplControlValue aControlValue;
Size aCurSize( GetSizePixel() );
@@ -3643,7 +3643,7 @@ Image CheckBox::GetCheckImage( const AllSettings& rSettings, DrawButtonFlags nFl
void CheckBox::ImplSetMinimumNWFSize()
{
Push( PushFlags::MAPMODE );
- SetMapMode( MapUnit::MapPixel );
+ SetMapMode(MapMode(MapUnit::MapPixel));
ImplControlValue aControlValue;
Size aCurSize( GetSizePixel() );
diff --git a/vcl/source/control/listctrl.cxx b/vcl/source/control/listctrl.cxx
index 1c42b0565fb9..fd94a50abed1 100644
--- a/vcl/source/control/listctrl.cxx
+++ b/vcl/source/control/listctrl.cxx
@@ -95,7 +95,7 @@ void ListControl::RecalcAll()
Size ListControl::GetOptimalSize() const
{
- return LogicToPixel(Size(300, 185), MapUnit::MapAppFont);
+ return LogicToPixel(Size(300, 185), MapMode(MapUnit::MapAppFont));
}
void ListControl::Resize()
diff --git a/vcl/source/control/morebtn.cxx b/vcl/source/control/morebtn.cxx
index acff4e0be2f2..95fd6fb78871 100644
--- a/vcl/source/control/morebtn.cxx
+++ b/vcl/source/control/morebtn.cxx
@@ -89,7 +89,7 @@ void MoreButton::Click()
{
vcl::Window* pParent = GetParent();
Size aSize( pParent->GetSizePixel() );
- long nDeltaPixel = LogicToPixel( Size( 0, 0 ), MapUnit::MapPixel ).Height();
+ long nDeltaPixel = LogicToPixel(Size(0, 0), MapMode(MapUnit::MapPixel)).Height();
// Change status
mbState = !mbState;