summaryrefslogtreecommitdiff
path: root/fpicker
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 /fpicker
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 'fpicker')
-rw-r--r--fpicker/source/office/iodlg.cxx4
-rw-r--r--fpicker/source/office/iodlgimp.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index a56aebf3874f..72f4e494cb36 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -603,7 +603,7 @@ void SvtFileDialog::Init_Impl
pImpl->_bMultiSelection = true;
_pContainer.reset(VclPtr<CustomContainer>::Create(get<vcl::Window>("container")));
- Size aSize(LogicToPixel(Size(270, 85), MapUnit::MapAppFont));
+ Size aSize(LogicToPixel(Size(270, 85), MapMode(MapUnit::MapAppFont)));
_pContainer->set_height_request(aSize.Height());
_pContainer->set_width_request(aSize.Width());
_pContainer->set_hexpand(true);
@@ -2534,7 +2534,7 @@ void SvtFileDialog::AddControls_Impl( )
pImpl->_pPlaces = VclPtr<PlacesListBox>::Create(_pContainer, this, FpsResId(STR_PLACES_TITLE), WB_BORDER);
pImpl->_pPlaces->SetHelpId("SVT_HID_FILESAVE_PLACES_LISTBOX");
- Size aSize(LogicToPixel(Size(50, 85), MapUnit::MapAppFont));
+ Size aSize(LogicToPixel(Size(50, 85), MapMode(MapUnit::MapAppFont)));
pImpl->_pPlaces->set_height_request(aSize.Height());
pImpl->_pPlaces->set_width_request(aSize.Width());
pImpl->_pPlaces->SetSizePixel(aSize);
diff --git a/fpicker/source/office/iodlgimp.cxx b/fpicker/source/office/iodlgimp.cxx
index 0249ff50c537..b9699cc24bb0 100644
--- a/fpicker/source/office/iodlgimp.cxx
+++ b/fpicker/source/office/iodlgimp.cxx
@@ -170,7 +170,7 @@ void SvtUpButton_Impl::Click()
Size SvtUpButton_Impl::GetOptimalSize() const
{
- return LogicToPixel(Size(12, 12), MapUnit::MapAppFont);
+ return LogicToPixel(Size(12, 12), MapMode(MapUnit::MapAppFont));
}
// SvtExpFileDlg_Impl