summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/xml/xmlfmt.cxx2
-rw-r--r--sw/source/filter/xml/xmltbli.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/xml/xmlfmt.cxx b/sw/source/filter/xml/xmlfmt.cxx
index 8b359b62a940..bbb8ae3320bf 100644
--- a/sw/source/filter/xml/xmlfmt.cxx
+++ b/sw/source/filter/xml/xmlfmt.cxx
@@ -351,7 +351,7 @@ SvXMLImportContext *SwXMLTextStyleContext_Impl::CreateChildContext(
if( !pConditions )
pConditions = new SwXMLConditions_Impl;
pConditions->push_back( pCond );
- pCond->AddRef();
+ pCond->AddFirstRef();
}
pContext = pCond;
}
diff --git a/sw/source/filter/xml/xmltbli.cxx b/sw/source/filter/xml/xmltbli.cxx
index 0b0bd94126f9..3aa355b1722d 100644
--- a/sw/source/filter/xml/xmltbli.cxx
+++ b/sw/source/filter/xml/xmltbli.cxx
@@ -1499,7 +1499,7 @@ SvXMLImportContext *SwXMLTableContext::CreateChildContext( sal_uInt16 nPrefix,
}
pDDESource = new SwXMLDDETableContext_Impl( GetSwImport(), nPrefix,
rLocalName );
- pDDESource->AddRef();
+ pDDESource->AddFirstRef();
pContext = pDDESource;
}
break;