[Libreoffice-commits] core.git: sw/source
Stephan Bergmann
sbergman at redhat.com
Thu Nov 23 06:54:36 UTC 2017
sw/source/core/unocore/unoframe.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d7f2de780e73d23a80cc3d15f84f433d9d056685
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Nov 21 23:33:51 2017 +0100
put GraphicObject on stack instead of heap
Change-Id: Ia673a88a397d3a4e5c3b2ff31a60d04ea9e70d1f
Reviewed-on: https://gerrit.libreoffice.org/45062
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 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;
}
}
More information about the Libreoffice-commits
mailing list