From 20ff62d319d9a8195a59d5b27ccc52d9000992c0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 17 Dec 2019 09:12:00 +0200 Subject: loplugin:expandablemethods Change-Id: Ifc269d9996928085a3ab78033788465b4f029368 Reviewed-on: https://gerrit.libreoffice.org/85255 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/svdraw/svdedxv.cxx | 3 +-- svx/source/svdraw/svdograf.cxx | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'svx/source/svdraw') diff --git a/svx/source/svdraw/svdedxv.cxx b/svx/source/svdraw/svdedxv.cxx index 2deae4c913cb..d5ed29862e3d 100644 --- a/svx/source/svdraw/svdedxv.cxx +++ b/svx/source/svdraw/svdedxv.cxx @@ -435,7 +435,6 @@ public: // data read access const sdr::overlay::OverlaySelection* getOverlaySelection() const { return mpOverlaySelection; } const OutlinerView& getOutlinerView() const { return mrOutlinerView; } - bool getVisualizeSurroundingFrame() const { return mbVisualizeSurroundingFrame; } /// override to check conditions for last createOverlayObjectPrimitive2DSequence virtual drawinglayer::primitive2d::Primitive2DContainer @@ -453,7 +452,7 @@ TextEditOverlayObject::createOverlayObjectPrimitive2DSequence() drawinglayer::primitive2d::Primitive2DContainer aRetval; /// outer frame visualization - if (getVisualizeSurroundingFrame()) + if (mbVisualizeSurroundingFrame) { const SvtOptionsDrawinglayer aSvtOptionsDrawinglayer; const double fTransparence(aSvtOptionsDrawinglayer.GetTransparentSelectionPercent() * 0.01); diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index 7e14a6d3bdd9..135b934be8b4 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -88,8 +88,6 @@ public: const OUString& rMimeType, const css::uno::Any & rValue ) override; void Connect() { GetRealObject(); } - - const OUString& getReferer() const { return rGrafObj.aReferer; } }; SdrGraphicLink::SdrGraphicLink(SdrGrafObj& rObj) @@ -110,7 +108,7 @@ SdrGraphicLink::SdrGraphicLink(SdrGrafObj& rObj) sfx2::LinkManager::GetDisplayNames( this, nullptr, &rGrafObj.aFileName, nullptr, &rGrafObj.aFilterName ); Graphic aGraphic; - if (sfx2::LinkManager::GetGraphicFromAny(rMimeType, rValue, getReferer(), aGraphic, nullptr)) + if (sfx2::LinkManager::GetGraphicFromAny(rMimeType, rValue, rGrafObj.aReferer, aGraphic, nullptr)) { rGrafObj.ImpSetLinkedGraphic(aGraphic); } -- cgit v1.2.3