summaryrefslogtreecommitdiff
path: root/xmloff/source/draw
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-02 14:37:06 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-03 05:25:41 +0000
commitc625525ddcc5bd1ceb1be95031da6047280d623c (patch)
treef3469c6d418dadd723d4b91b8166015b3f6442b9 /xmloff/source/draw
parent4a0fc2fb026ee46f7ef8e75135e2ae9b411ae134 (diff)
rename SvRef::AddRef to AddFirstRef
to make it's intended purpose clearly distinguishable from AddNextRef Change-Id: I5da780b48b19fd873667b648031bc394113f953b Reviewed-on: https://gerrit.libreoffice.org/11763 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff/source/draw')
-rw-r--r--xmloff/source/draw/sdxmlimp.cxx2
-rw-r--r--xmloff/source/draw/shapeimport.cxx4
-rw-r--r--xmloff/source/draw/ximp3dscene.cxx2
-rw-r--r--xmloff/source/draw/ximpstyl.cxx6
4 files changed, 7 insertions, 7 deletions
diff --git a/xmloff/source/draw/sdxmlimp.cxx b/xmloff/source/draw/sdxmlimp.cxx
index 4b21bcaa268d..b55a0c9fa9c7 100644
--- a/xmloff/source/draw/sdxmlimp.cxx
+++ b/xmloff/source/draw/sdxmlimp.cxx
@@ -739,7 +739,7 @@ SvXMLImportContext* SdXMLImport::CreateMasterStylesContext(const OUString& rLoca
mpMasterStylesContext = new SdXMLMasterStylesContext(
*this, XML_NAMESPACE_OFFICE, rLocalName);
- mpMasterStylesContext->AddRef();
+ mpMasterStylesContext->AddFirstRef();
return mpMasterStylesContext;
}
diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx
index d552b3f09800..29d768d8ce3d 100644
--- a/xmloff/source/draw/shapeimport.cxx
+++ b/xmloff/source/draw/shapeimport.cxx
@@ -467,14 +467,14 @@ void XMLShapeImportHelper::SetStylesContext(SvXMLStylesContext* pNew)
{
mpStylesContext = pNew;
if (mpStylesContext)
- mpStylesContext->AddRef();
+ mpStylesContext->AddFirstRef();
}
void XMLShapeImportHelper::SetAutoStylesContext(SvXMLStylesContext* pNew)
{
mpAutoStylesContext = pNew;
if (mpAutoStylesContext)
- mpAutoStylesContext->AddRef();
+ mpAutoStylesContext->AddFirstRef();
}
SvXMLShapeContext* XMLShapeImportHelper::CreateGroupChildContext(
diff --git a/xmloff/source/draw/ximp3dscene.cxx b/xmloff/source/draw/ximp3dscene.cxx
index ce1d8639b0fb..dc05038ac5ed 100644
--- a/xmloff/source/draw/ximp3dscene.cxx
+++ b/xmloff/source/draw/ximp3dscene.cxx
@@ -233,7 +233,7 @@ SvXMLImportContext * SdXML3DSceneAttributesHelper::create3DLightContext( sal_uIn
// remember SdXML3DLightContext for later evaluation
if(pContext)
{
- pContext->AddRef();
+ pContext->AddFirstRef();
maList.push_back( static_cast<SdXML3DLightContext*>(pContext) );
}
diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx
index 3e3ddd3c056a..ecaf3962b0bc 100644
--- a/xmloff/source/draw/ximpstyl.cxx
+++ b/xmloff/source/draw/ximpstyl.cxx
@@ -437,7 +437,7 @@ SvXMLImportContext *SdXMLPageMasterContext::CreateChildContext(
// remember SdXMLPresentationPlaceholderContext for later evaluation
if(pContext)
{
- pContext->AddRef();
+ pContext->AddFirstRef();
DBG_ASSERT(!mpPageMasterStyle, "PageMasterStyle is set, there seem to be two of them (!)");
mpPageMasterStyle = static_cast<SdXMLPageMasterStyleContext*>(pContext);
}
@@ -497,7 +497,7 @@ SvXMLImportContext *SdXMLPresentationPageLayoutContext::CreateChildContext(
// remember SdXMLPresentationPlaceholderContext for later evaluation
if(pContext)
{
- pContext->AddRef();
+ pContext->AddFirstRef();
maList.push_back( static_cast<SdXMLPresentationPlaceholderContext*>(pContext) );
}
}
@@ -1534,7 +1534,7 @@ SvXMLImportContext* SdXMLMasterStylesContext::CreateChildContext(
if(pContext)
{
- pContext->AddRef();
+ pContext->AddFirstRef();
maMasterPageList.push_back( static_cast<SdXMLMasterPageContext*>(pContext) );
}
}