[Libreoffice-commits] core.git: include/svx svx/source

Stephan Bergmann sbergman at redhat.com
Fri Mar 9 10:26:55 UTC 2018


 include/svx/unoshape.hxx        |    5 +----
 svx/source/unodraw/unopage.cxx  |    2 +-
 svx/source/unodraw/unoshap2.cxx |    4 ++--
 3 files changed, 4 insertions(+), 7 deletions(-)

New commits:
commit 03300fba21eb5f02ebd7e6a997985d8a3fa500da
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Mar 9 11:26:25 2018 +0100

    -Werror,-Wunused-private-field
    
    Change-Id: I0cfa88efe03e8018513e2cce49ab9db63fe976d0

diff --git a/include/svx/unoshape.hxx b/include/svx/unoshape.hxx
index 11334b4d4940..4bb90d88ee0e 100644
--- a/include/svx/unoshape.hxx
+++ b/include/svx/unoshape.hxx
@@ -669,11 +669,8 @@ protected:
     virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, css::uno::Any& rValue ) override;
 
 public:
-    SvxGraphicObject(SdrObject* pObj, OUString const & referer);
+    SvxGraphicObject(SdrObject* pObj);
     virtual ~SvxGraphicObject() throw() override;
-
-private:
-    OUString referer_;
 };
 
 /***********************************************************************
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx
index 20acc6c4bdd8..4532749471d1 100644
--- a/svx/source/unodraw/unopage.cxx
+++ b/svx/source/unodraw/unopage.cxx
@@ -655,7 +655,7 @@ SvxShape* SvxDrawPage::CreateShapeByTypeAndInventor( sal_uInt16 nType, SdrInvent
                     pRet = new SvxShapeText( pObj );
                     break;
                 case OBJ_GRAF:
-                    pRet = new SvxGraphicObject( pObj, referer );
+                    pRet = new SvxGraphicObject( pObj );
                     break;
                 case OBJ_FRAME:
                     pRet = new SvxFrameShape( pObj );
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx
index b237662242ab..bf8b7b706c0d 100644
--- a/svx/source/unodraw/unoshap2.cxx
+++ b/svx/source/unodraw/unoshap2.cxx
@@ -1279,8 +1279,8 @@ basegfx::B2DPolyPolygon SvxShapePolyPolygonBezier::GetPolygon() const throw()
     }
 }
 
-SvxGraphicObject::SvxGraphicObject(SdrObject* pObj, OUString const & referer)
-    : SvxShapeText( pObj, getSvxMapProvider().GetMap(SVXMAP_GRAPHICOBJECT), getSvxMapProvider().GetPropertySet(SVXMAP_GRAPHICOBJECT, SdrObject::GetGlobalDrawObjectItemPool()) ), referer_(referer)
+SvxGraphicObject::SvxGraphicObject(SdrObject* pObj)
+    : SvxShapeText( pObj, getSvxMapProvider().GetMap(SVXMAP_GRAPHICOBJECT), getSvxMapProvider().GetPropertySet(SVXMAP_GRAPHICOBJECT, SdrObject::GetGlobalDrawObjectItemPool()) )
 {
 }
 


More information about the Libreoffice-commits mailing list