Kaydet (Commit) 1f560875 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

reduce scope of var

Change-Id: If9f4974fa1bf664b14c81e243f7dcd36abd3a1ce
Reviewed-on: https://gerrit.libreoffice.org/45061Tested-by: 's avatarStephan Bergmann <sbergman@redhat.com>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst c7e0f494
...@@ -1650,7 +1650,6 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any& ...@@ -1650,7 +1650,6 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any&
Graphic aGraphic; Graphic aGraphic;
if( bURL ) if( bURL )
{ {
std::unique_ptr<GraphicObject> pGrfObj;
OUString aGrfUrl; OUString aGrfUrl;
aValue >>= aGrfUrl; aValue >>= aGrfUrl;
...@@ -1662,7 +1661,7 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any& ...@@ -1662,7 +1661,7 @@ void SwXFrame::setPropertyValue(const OUString& rPropertyName, const ::uno::Any&
OString sId(OUStringToOString( OString sId(OUStringToOString(
aGrfUrl.copy(sizeof(sGraphicObjectProtocol)-1), aGrfUrl.copy(sizeof(sGraphicObjectProtocol)-1),
RTL_TEXTENCODING_ASCII_US)); RTL_TEXTENCODING_ASCII_US));
pGrfObj = o3tl::make_unique<GraphicObject>( sId ); auto pGrfObj = o3tl::make_unique<GraphicObject>( sId );
aGraphic = pGrfObj->GetGraphic(); aGraphic = pGrfObj->GetGraphic();
bApply = true; bApply = true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment