diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-04-24 08:30:17 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-04-27 14:00:47 +0200 |
commit | 8e7ab851a35dee4b36eec9b55adcaafb0f0d9af8 (patch) | |
tree | 1c81972aa1a72219ab1cda5b78114ced03ff26a9 /sw | |
parent | b02d893cba1a4d02f38c0d5c0415a8ec35923946 (diff) |
Constify some OUStrings
Change-Id: I5c10ae7dcf28dcbf4e3e5e709f4e939452e0d83b
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/xml/xmlexpit.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/xml/xmlexpit.cxx b/sw/source/filter/xml/xmlexpit.cxx index f05f07cf1305..b4bf203bd3f3 100644 --- a/sw/source/filter/xml/xmlexpit.cxx +++ b/sw/source/filter/xml/xmlexpit.cxx @@ -139,7 +139,7 @@ void SvXMLExportItemMapper::exportXML( const SvXMLExport& rExport, } if( bAddAttribute ) { - OUString sName( rNamespaceMap.GetQNameByKey( rEntry.nNameSpace, + const OUString sName( rNamespaceMap.GetQNameByKey( rEntry.nNameSpace, GetXMLToken(rEntry.eLocalName) ) ); rAttrList.AddAttribute( sName, aValue ); } @@ -156,10 +156,10 @@ void SvXMLExportItemMapper::exportXML( const SvXMLExport& rExport, OUStringBuffer sName; for( sal_uInt16 i=0; i < nCount; i++ ) { - OUString sPrefix( pUnknown->GetAttrPrefix( i ) ); + const OUString sPrefix( pUnknown->GetAttrPrefix( i ) ); if( !sPrefix.isEmpty() ) { - OUString sNamespace( pUnknown->GetAttrNamespace( i ) ); + const OUString sNamespace( pUnknown->GetAttrNamespace( i ) ); // if the prefix isn't defined yet or has another meaning, // we have to redefine it now. @@ -207,7 +207,7 @@ void SvXMLExportItemMapper::exportXML( const SvXMLExport& rExport, rEntry.nMemberId & MID_SW_FLAG_MASK ), rUnitConverter ) ) { - OUString sName( + const OUString sName( rNamespaceMap.GetQNameByKey( rEntry.nNameSpace, GetXMLToken(rEntry.eLocalName))); rAttrList.AddAttribute( sName, aValue ); |