diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-05 12:48:27 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-05 12:48:27 +0200 |
commit | ca35b597012154d655ed50e53d9d614098058ab0 (patch) | |
tree | d7dd331ed5ccce4dfcd2f7f9bad5ecc08870de23 /sw/source/core/draw | |
parent | 011563a083da45b7c6805ec42778672d4a0fb0dc (diff) |
Various loplugin warnings
Change-Id: I8d38521f08441f123a236729c01909f2da4ec478
Diffstat (limited to 'sw/source/core/draw')
-rw-r--r-- | sw/source/core/draw/dflyobj.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/draw/dflyobj.cxx b/sw/source/core/draw/dflyobj.cxx index 6ba8e5158b38..4baf26c23464 100644 --- a/sw/source/core/draw/dflyobj.cxx +++ b/sw/source/core/draw/dflyobj.cxx @@ -748,7 +748,7 @@ void SwVirtFlyDrawObj::NbcCrop(const Point& rRef, const Fraction& xFact, const F ResizeRect( aNewRect, rRef, xFact, yFact ); // Get graphic object size in 100th of mm - GraphicObject *pGraphicObject = (GraphicObject *) pSh->GetGraphicObj(); + GraphicObject const *pGraphicObject = pSh->GetGraphicObj(); if (!pGraphicObject) return; const MapMode aMapMode100thmm(MAP_100TH_MM); @@ -756,14 +756,14 @@ void SwVirtFlyDrawObj::NbcCrop(const Point& rRef, const Fraction& xFact, const F if( MAP_PIXEL == pGraphicObject->GetPrefMapMode().GetMapUnit() ) aGraphicSize = Application::GetDefaultDevice()->PixelToLogic( aGraphicSize, aMapMode100thmm ); else - aGraphicSize = Application::GetDefaultDevice()->LogicToLogic( aGraphicSize, pGraphicObject->GetPrefMapMode(), aMapMode100thmm); + aGraphicSize = OutputDevice::LogicToLogic( aGraphicSize, pGraphicObject->GetPrefMapMode(), aMapMode100thmm); if( aGraphicSize.A() == 0 || aGraphicSize.B() == 0 ) return ; // Get old values for crop in 10th of mm SfxItemSet aSet( pSh->GetAttrPool(), RES_GRFATR_CROPGRF, RES_GRFATR_CROPGRF ); pSh->GetCurAttr( aSet ); - SwCropGrf aCrop( (const SwCropGrf&) aSet.Get(RES_GRFATR_CROPGRF) ); + SwCropGrf aCrop( static_cast<const SwCropGrf&>(aSet.Get(RES_GRFATR_CROPGRF)) ); Rectangle aCropRectangle( convertTwipToMm100(aCrop.GetLeft()), |