sw/source/core/unocore/unoframe.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 1f56087504e30ae81bd8e55b8f1364f326b75e76 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Nov 21 23:31:14 2017 +0100 reduce scope of var Change-Id: If9f4974fa1bf664b14c81e243f7dcd36abd3a1ce Reviewed-on: https://gerrit.libreoffice.org/45061 Tested-by: Stephan Bergmann <sberg...@redhat.com> Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sw/source/core/unocore/unoframe.cxx b/sw/source/core/unocore/unoframe.cxx index e2e8a0232ef8..a65b25e47c0c 100644 --- a/sw/source/core/unocore/unoframe.cxx +++ b/sw/source/core/unocore/unoframe.cxx @@ -1650,7 +1650,6 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any& Graphic aGraphic; if( bURL ) { - std::unique_ptr<GraphicObject> pGrfObj; OUString aGrfUrl; aValue >>= aGrfUrl; @@ -1662,7 +1661,7 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any& OString sId(OUStringToOString( aGrfUrl.copy(sizeof(sGraphicObjectProtocol)-1), RTL_TEXTENCODING_ASCII_US)); - pGrfObj = o3tl::make_unique<GraphicObject>( sId ); + auto pGrfObj = o3tl::make_unique<GraphicObject>( sId ); aGraphic = pGrfObj->GetGraphic(); bApply = true; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits