summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-11-21 23:33:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-11-23 07:54:05 +0100
commitd7f2de780e73d23a80cc3d15f84f433d9d056685 (patch)
tree34c969aba561a203aa62ba1fb48975f24fcdfd6b
parent1f56087504e30ae81bd8e55b8f1364f326b75e76 (diff)
put GraphicObject on stack instead of heap
Change-Id: Ia673a88a397d3a4e5c3b2ff31a60d04ea9e70d1f Reviewed-on: https://gerrit.libreoffice.org/45062 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--sw/source/core/unocore/unoframe.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx
index a65b25e47c0c..d3d527a8e2ca 100644
--- a/sw/source/core/unocore/unoframe.cxx
+++ b/sw/source/core/unocore/unoframe.cxx
@@ -1661,8 +1661,8 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any&
OString sId(OUStringToOString(
aGrfUrl.copy(sizeof(sGraphicObjectProtocol)-1),
RTL_TEXTENCODING_ASCII_US));
- auto pGrfObj = o3tl::make_unique<GraphicObject>( sId );
- aGraphic = pGrfObj->GetGraphic();
+ GraphicObject pGrfObj( sId );
+ aGraphic = pGrfObj.GetGraphic();
bApply = true;
}
}