summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-11-21 23:31:14 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-11-23 07:53:45 +0100
commit1f56087504e30ae81bd8e55b8f1364f326b75e76 (patch)
treedc8f49b057048fb308045db574a0343eb3e3d777 /sw
parentc7e0f494bfc7a663f07769b8ed5de0b59bdd11da (diff)
reduce scope of var
Change-Id: If9f4974fa1bf664b14c81e243f7dcd36abd3a1ce Reviewed-on: https://gerrit.libreoffice.org/45061 Tested-by: Stephan Bergmann <sbergman@redhat.com> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unoframe.cxx3
1 files changed, 1 insertions, 2 deletions
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;
}