summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/XMLTableSourceContext.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-03-23 11:53:30 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-03-23 11:53:30 +0000
commit7dd36ace6459d5345c37fec282176a723414e8d7 (patch)
treef4dbe530114328353db3ddeefb3be66a42400e8c /sc/source/filter/xml/XMLTableSourceContext.cxx
parent722c715345ac2bf5a946435e746c76eabd97c094 (diff)
INTEGRATION: CWS calcuno01 (1.8.326); FILE MERGED
2004/10/13 12:42:59 sab 1.8.326.3: RESYNC: (1.9-1.10); FILE MERGED 2004/03/24 10:52:00 dr 1.8.326.2: RESYNC: (1.8-1.9); FILE MERGED 2004/01/05 11:56:15 sab 1.8.326.1: #i22706#; improve API using
Diffstat (limited to 'sc/source/filter/xml/XMLTableSourceContext.cxx')
-rw-r--r--sc/source/filter/xml/XMLTableSourceContext.cxx21
1 files changed, 10 insertions, 11 deletions
diff --git a/sc/source/filter/xml/XMLTableSourceContext.cxx b/sc/source/filter/xml/XMLTableSourceContext.cxx
index 9b9773a9ee47..b9c041439eb1 100644
--- a/sc/source/filter/xml/XMLTableSourceContext.cxx
+++ b/sc/source/filter/xml/XMLTableSourceContext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLTableSourceContext.cxx,v $
*
- * $Revision: 1.10 $
+ * $Revision: 1.11 $
*
- * last change: $Author: obo $ $Date: 2004-06-04 11:11:47 $
+ * last change: $Author: vg $ $Date: 2005-03-23 12:53:30 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -118,14 +118,14 @@ ScXMLTableSourceContext::ScXMLTableSourceContext( ScXMLImport& rImport,
nRefresh(0),
nMode(sheet::SheetLinkMode_NORMAL)
{
- sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
- for( sal_Int16 i=0; i < nAttrCount; i++ )
+ sal_Int16 nAttrCount(xAttrList.is() ? xAttrList->getLength() : 0);
+ for( sal_Int16 i=0; i < nAttrCount; ++i )
{
- rtl::OUString sAttrName = xAttrList->getNameByIndex( i );
+ const rtl::OUString& sAttrName(xAttrList->getNameByIndex( i ));
rtl::OUString aLocalName;
- sal_uInt16 nPrefix = GetScImport().GetNamespaceMap().GetKeyByAttrName(
- sAttrName, &aLocalName );
- rtl::OUString sValue = xAttrList->getValueByIndex( i );
+ sal_uInt16 nPrefix(GetScImport().GetNamespaceMap().GetKeyByAttrName(
+ sAttrName, &aLocalName ));
+ const rtl::OUString& sValue(xAttrList->getValueByIndex( i ));
if(nPrefix == XML_NAMESPACE_XLINK)
{
if (IsXMLToken(aLocalName, XML_HREF))
@@ -163,8 +163,7 @@ SvXMLImportContext *ScXMLTableSourceContext::CreateChildContext( USHORT nPrefix,
const ::com::sun::star::uno::Reference<
::com::sun::star::xml::sax::XAttributeList>& xAttrList )
{
- SvXMLImportContext *pContext = new SvXMLImportContext( GetImport(), nPrefix, rLName );
- return pContext;
+ return new SvXMLImportContext( GetImport(), nPrefix, rLName );
}
void ScXMLTableSourceContext::EndElement()
@@ -172,7 +171,7 @@ void ScXMLTableSourceContext::EndElement()
if (sLink.getLength())
{
uno::Reference <sheet::XSheetLinkable> xLinkable (GetScImport().GetTables().GetCurrentXSheet(), uno::UNO_QUERY);
- ScDocument* pDoc = GetScImport().GetDocument();
+ ScDocument* pDoc(GetScImport().GetDocument());
if (xLinkable.is() && pDoc)
{
GetScImport().LockSolarMutex();