diff options
Diffstat (limited to 'xmloff/source/core/nmspmap.cxx')
-rw-r--r-- | xmloff/source/core/nmspmap.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/xmloff/source/core/nmspmap.cxx b/xmloff/source/core/nmspmap.cxx index 49580c95bf..6367f5f160 100644 --- a/xmloff/source/core/nmspmap.cxx +++ b/xmloff/source/core/nmspmap.cxx @@ -196,12 +196,12 @@ OUString SvXMLNamespaceMap::GetAttrNameByKey( sal_uInt16 nKey ) const if (aIter != aNameMap.end()) { sAttrName.append( sXMLNS ); - const ::rtl::OUString & prefix( (*aIter).second->sPrefix );
- if (prefix.getLength()) // not default namespace
- {
- sAttrName.append( sal_Unicode(':') );
- sAttrName.append( prefix );
- }
+ const ::rtl::OUString & prefix( (*aIter).second->sPrefix ); + if (prefix.getLength()) // not default namespace + { + sAttrName.append( sal_Unicode(':') ); + sAttrName.append( prefix ); + } } return sAttrName.makeStringAndClear(); } @@ -226,11 +226,11 @@ OUString SvXMLNamespaceMap::GetQNameByKey( sal_uInt16 nKey, // don't bother caching this, it rarely happens OUStringBuffer sQName; sQName.append ( sXMLNS ); - if (rLocalName.getLength()) // not default namespace
- {
- sQName.append ( sal_Unicode(':') );
- sQName.append ( rLocalName );
- }
+ if (rLocalName.getLength()) // not default namespace + { + sQName.append ( sal_Unicode(':') ); + sQName.append ( rLocalName ); + } return sQName.makeStringAndClear();; } case XML_NAMESPACE_XML: |