summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-05-07 17:06:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-05-07 17:24:18 +0100
commit6483d363d1d8418a8c6bcf99f304161bee48d579 (patch)
tree6853b0026e51ed2dc7d1abaa80c52f310ee5b4fa /svx
parentbd6efb29d7b588669a27a7132b357e692c571a60 (diff)
drop unnecessary GraphicObject
Change-Id: Iadc741260b3c9f16248c817530b1630b22c626ee
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdoole2.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index 402bf801b7d3..7f26842fa0b7 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -596,8 +596,6 @@ public:
svt::EmbeddedObjectRef mxObjRef;
std::unique_ptr<Graphic> mxGraphic;
- // TODO/LATER: do we really need this pointer?
- std::unique_ptr<GraphicObject> mxGraphicObject;
OUString maProgName;
OUString aPersistName; // name of object in persist
SdrLightEmbeddedClient_Impl* pLightClient; // must be registered as client only using AddOwnLightClient() call
@@ -647,7 +645,6 @@ public:
~SdrOle2ObjImpl()
{
mxGraphic.reset();
- mxGraphicObject.reset();
if (mxModifyListener.is())
{
@@ -758,7 +755,6 @@ void SdrOle2Obj::SetGraphic(const Graphic& rGrf)
{
// only for setting a preview graphic
mpImpl->mxGraphic.reset(new Graphic(rGrf));
- mpImpl->mxGraphicObject.reset(new GraphicObject(*mpImpl->mxGraphic));
SetChanged();
BroadcastObjectChange();
@@ -767,7 +763,6 @@ void SdrOle2Obj::SetGraphic(const Graphic& rGrf)
void SdrOle2Obj::ClearGraphic()
{
mpImpl->mxGraphic.reset();
- mpImpl->mxGraphicObject.reset();
SetChanged();
BroadcastObjectChange();
@@ -1519,7 +1514,6 @@ SdrOle2Obj& SdrOle2Obj::assignFrom(const SdrOle2Obj& rObj)
if (rOle2Obj.mpImpl->mxGraphic)
{
mpImpl->mxGraphic.reset(new Graphic(*rOle2Obj.mpImpl->mxGraphic));
- mpImpl->mxGraphicObject.reset(new GraphicObject(*mpImpl->mxGraphic));
}
if( pModel && rObj.GetModel() && !IsEmptyPresObj() )