Kaydet (Commit) 02fe5bc8 authored tarafından Matteo Casalin's avatar Matteo Casalin

Constify and reduce scope

Change-Id: Iced2c74c0e4ecc05ba937eab9e3610a714b0f68b
üst 80a221e4
......@@ -78,7 +78,7 @@ void SwXMLBrushItemImportContext::ProcessAttrs(
{
const OUString& rAttrName = xAttrList->getNameByIndex( i );
OUString aLocalName;
sal_uInt16 nPrefix =
const sal_uInt16 nPrefix =
GetImport().GetNamespaceMap().GetKeyByAttrName( rAttrName,
&aLocalName );
const OUString& rValue = xAttrList->getValueByIndex( i );
......@@ -145,7 +145,7 @@ void SwXMLBrushItemImportContext::EndElement()
{
if( xBase64Stream.is() )
{
OUString sURL( GetImport().ResolveGraphicObjectURLFromBase64( xBase64Stream ) );
const OUString sURL( GetImport().ResolveGraphicObjectURLFromBase64( xBase64Stream ) );
xBase64Stream = 0;
SvXMLImportItemMapper::PutXMLValue( *pItem, sURL, MID_GRAPHIC_LINK, GetImport().GetMM100UnitConverter() );
}
......@@ -201,12 +201,12 @@ void SwXMLBrushItemExport::exportXML( const SvxBrushItem& rItem )
{
GetExport().CheckAttrList();
OUString sValue, sURL;
OUString sURL;
const SvXMLUnitConverter& rUnitConv = GetExport().GetTwipUnitConverter();
if( SvXMLExportItemMapper::QueryXMLValue(
rItem, sURL, MID_GRAPHIC_LINK, rUnitConv ) )
{
sValue = GetExport().AddEmbeddedGraphicObject( sURL );
OUString sValue = GetExport().AddEmbeddedGraphicObject( sURL );
if( !sValue.isEmpty() )
{
GetExport().AddAttribute( XML_NAMESPACE_XLINK, XML_HREF, sValue );
......
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