diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-13 17:49:46 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-13 17:54:25 +0200 |
commit | 6e3d5efd4e363eb79c07189ba8f2009b1fcfc9d8 (patch) | |
tree | 5eca4ace89da643ee097aae74a8943441e3019ab /drawinglayer | |
parent | 1db81a3e4b53a06dd499d311dc02c65a69b4d7a0 (diff) |
loplugin:staticcall
Change-Id: I395fc9cbdd90ead54ef3007df97453b76d1101a7
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/primitive2d/metafileprimitive2d.cxx | 2 | ||||
-rw-r--r-- | drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx index 9ef1e559a64f..306b0d07e0c2 100644 --- a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx @@ -2739,7 +2739,7 @@ namespace aFontSize = Size(0, 16); // convert to target MapUnit if not pixels - aFontSize = Application::GetDefaultDevice()->LogicToLogic( + aFontSize = OutputDevice::LogicToLogic( aFontSize, MAP_PIXEL, rPropertyHolders.Current().getMapUnit()); aCorrectedFont.SetSize(aFontSize); diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx index 4ea56e581c59..d6e1e7a28923 100644 --- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx @@ -824,7 +824,7 @@ namespace drawinglayer { const MapMode aMapMode100thmm(MAP_100TH_MM); - const Size aBitmapSize(Application::GetDefaultDevice()->LogicToLogic( + const Size aBitmapSize(OutputDevice::LogicToLogic( rGraphicPrimitive.getGraphicObject().GetPrefSize(), rGraphicPrimitive.getGraphicObject().GetPrefMapMode(), aMapMode100thmm)); const double fDivX(aBitmapSize.Width() - rAttr.GetLeftCrop() - rAttr.GetRightCrop()); @@ -914,7 +914,7 @@ namespace drawinglayer pPDFControl->Location = aRectLogic; Size aFontSize(pPDFControl->TextFont.GetSize()); - aFontSize = mpOutputDevice->LogicToLogic(aFontSize, MapMode(MAP_POINT), mpOutputDevice->GetMapMode()); + aFontSize = OutputDevice::LogicToLogic(aFontSize, MapMode(MAP_POINT), mpOutputDevice->GetMapMode()); pPDFControl->TextFont.SetSize(aFontSize); mpPDFExtOutDevData->BeginStructureElement(vcl::PDFWriter::Form); |