[Libreoffice-commits] core.git: sw/source

Stephan Bergmann sbergman at redhat.com
Thu Nov 23 06:55:04 UTC 2017


 sw/source/core/unocore/unoframe.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 0e2f224d07a0e7f542984d9e9f48c9cda86a80f6
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Nov 22 10:38:15 2017 +0100

    An anonymous GraphicObject instance suffices here
    
    Change-Id: I13156c3194497a2e554cdfe3a92a4ff83e0ea2f1
    Reviewed-on: https://gerrit.libreoffice.org/45073
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

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;
                 }
             }


More information about the Libreoffice-commits mailing list