summaryrefslogtreecommitdiffstats
path: root/sc/source/filter/xml/xmlconti.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-03-23 11:56:44 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-03-23 11:56:44 +0000
commit58186a88bcbc4f7716d7126f5a9e8d4ee92da9ea (patch)
tree9fdfad25019f6749b0cf753eff998196d8873afd /sc/source/filter/xml/xmlconti.cxx
parentINTEGRATION: CWS calcuno01 (1.6.336); FILE MERGED (diff)
downloadcore-58186a88bcbc4f7716d7126f5a9e8d4ee92da9ea.tar.gz
core-58186a88bcbc4f7716d7126f5a9e8d4ee92da9ea.zip
INTEGRATION: CWS calcuno01 (1.5.332); FILE MERGED
2004/01/05 11:56:45 sab 1.5.332.1: #i22706#; improve API using
Diffstat (limited to 'sc/source/filter/xml/xmlconti.cxx')
-rw-r--r--sc/source/filter/xml/xmlconti.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/filter/xml/xmlconti.cxx b/sc/source/filter/xml/xmlconti.cxx
index a6018805b9d8..8224e4aa2a61 100644
--- a/sc/source/filter/xml/xmlconti.cxx
+++ b/sc/source/filter/xml/xmlconti.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlconti.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: sab $ $Date: 2001-07-26 06:51:19 $
+ * last change: $Author: vg $ $Date: 2005-03-23 12:56:44 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -112,10 +112,10 @@ SvXMLImportContext *ScXMLContentContext::CreateChildContext( USHORT nPrefix,
{
sal_Int32 nRepeat(0);
sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
- for( sal_Int16 i=0; i < nAttrCount; i++ )
+ for( sal_Int16 i=0; i < nAttrCount; ++i )
{
- rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
- rtl::OUString sValue = xAttrList->getValueByIndex( i );
+ const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
+ const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));
rtl::OUString aLocalName;
USHORT nPrfx = GetScImport().GetNamespaceMap().GetKeyByAttrName(
sAttrName, &aLocalName );
@@ -123,7 +123,7 @@ SvXMLImportContext *ScXMLContentContext::CreateChildContext( USHORT nPrefix,
nRepeat = sValue.toInt32();
}
if (nRepeat)
- for (sal_Int32 j = 0; j < nRepeat; j++)
+ for (sal_Int32 j = 0; j < nRepeat; ++j)
sOUText.append(static_cast<sal_Unicode>(' '));
else
sOUText.append(static_cast<sal_Unicode>(' '));