vcl: make MapMode constructor explicit

Insert constructor everywhere, except a couple places that apparently
want to compare GetMapUnit().

Change-Id: I1910deb60562e5e949203435e827057f70a3f988
This commit is contained in:
Michael Stahl
2017-10-26 23:15:06 +02:00
parent 213f7c02d4
commit 11d2f3d6e1
339 changed files with 670 additions and 656 deletions

View File

@@ -805,7 +805,7 @@ namespace cppcanvas
rFontSizeLog = ::Size(0, 16);
// convert to target MapUnit if not pixels
rFontSizeLog = OutputDevice::LogicToLogic(rFontSizeLog, MapUnit::MapPixel, rParms.mrVDev.GetMapMode());
rFontSizeLog = OutputDevice::LogicToLogic(rFontSizeLog, MapMode(MapUnit::MapPixel), rParms.mrVDev.GetMapMode());
}
const sal_Int32 nFontWidthLog = rFontSizeLog.Width();