diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-11-22 10:38:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-11-23 07:54:33 +0100 |
commit | 0e2f224d07a0e7f542984d9e9f48c9cda86a80f6 (patch) | |
tree | 68ca099ded7bca325e552d245a4e8823f9b023af /sw | |
parent | d7f2de780e73d23a80cc3d15f84f433d9d056685 (diff) |
An anonymous GraphicObject instance suffices here
Change-Id: I13156c3194497a2e554cdfe3a92a4ff83e0ea2f1
Reviewed-on: https://gerrit.libreoffice.org/45073
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unoframe.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx index d3d527a8e2ca..76ea5752dc97 100644 --- a/sw/source/core/unocore/unoframe.cxx +++ b/sw/source/core/unocore/unoframe.cxx @@ -1661,8 +1661,7 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any& OString sId(OUStringToOString( aGrfUrl.copy(sizeof(sGraphicObjectProtocol)-1), RTL_TEXTENCODING_ASCII_US)); - GraphicObject pGrfObj( sId ); - aGraphic = pGrfObj.GetGraphic(); + aGraphic = GraphicObject( sId ).GetGraphic(); bApply = true; } } |