diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-02 14:37:06 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-03 05:25:41 +0000 |
commit | c625525ddcc5bd1ceb1be95031da6047280d623c (patch) | |
tree | f3469c6d418dadd723d4b91b8166015b3f6442b9 /xmloff | |
parent | 4a0fc2fb026ee46f7ef8e75135e2ae9b411ae134 (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')
-rw-r--r-- | xmloff/source/core/xmlimp.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/draw/sdxmlimp.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/draw/shapeimport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/draw/ximp3dscene.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/draw/ximpstyl.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/forms/layerimport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/style/xmlnumi.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/xmlstyle.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/style/xmltabi.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/XMLTextColumnsContext.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/text/txtparaimphint.hxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtstyli.cxx | 2 |
12 files changed, 17 insertions, 17 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index 33d84b154870..97df9ab5aaba 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -717,7 +717,7 @@ void SAL_CALL SvXMLImport::startElement( const OUString& rName, if( !pContext ) pContext = new SvXMLImportContext( *this, nPrefix, aLocalName ); - pContext->AddRef(); + pContext->AddFirstRef(); // Remember old namespace map. if( pRewindMap ) 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) ); } } diff --git a/xmloff/source/forms/layerimport.cxx b/xmloff/source/forms/layerimport.cxx index 57703c16dda2..55e58a3bd524 100644 --- a/xmloff/source/forms/layerimport.cxx +++ b/xmloff/source/forms/layerimport.cxx @@ -240,7 +240,7 @@ void OFormLayerXMLImport_Impl::setAutoStyleContext(SvXMLStylesContext* _pNewCont OSL_ENSURE(!m_pAutoStyles, "OFormLayerXMLImport_Impl::setAutoStyleContext: not to be called twice!"); m_pAutoStyles = _pNewContext; if (m_pAutoStyles) - m_pAutoStyles->AddRef(); + m_pAutoStyles->AddFirstRef(); } void OFormLayerXMLImport_Impl::applyControlNumberStyle(const Reference< XPropertySet >& _rxControlModel, const OUString& _rControlNumerStyleName) @@ -253,7 +253,7 @@ void OFormLayerXMLImport_Impl::applyControlNumberStyle(const Reference< XPropert { m_pAutoStyles = m_rImporter.GetShapeImport()->GetAutoStylesContext(); if (m_pAutoStyles) - m_pAutoStyles->AddRef(); + m_pAutoStyles->AddFirstRef(); } if (m_pAutoStyles) diff --git a/xmloff/source/style/xmlnumi.cxx b/xmloff/source/style/xmlnumi.cxx index 41e51d8fab30..7ae70dcb6cc4 100644 --- a/xmloff/source/style/xmlnumi.cxx +++ b/xmloff/source/style/xmlnumi.cxx @@ -1075,7 +1075,7 @@ SvXMLImportContext *SvxXMLListStyleContext::CreateChildContext( if( !pLevelStyles ) pLevelStyles = new SvxXMLListStyle_Impl; pLevelStyles->push_back( pLevelStyle ); - pLevelStyle->AddRef(); + pLevelStyle->AddFirstRef(); pContext = pLevelStyle; } diff --git a/xmloff/source/style/xmlstyle.cxx b/xmloff/source/style/xmlstyle.cxx index c0a5f8682ce9..40a052d24596 100644 --- a/xmloff/source/style/xmlstyle.cxx +++ b/xmloff/source/style/xmlstyle.cxx @@ -304,7 +304,7 @@ SvXMLStylesContext_Impl::~SvXMLStylesContext_Impl() inline void SvXMLStylesContext_Impl::AddStyle( SvXMLStyleContext *pStyle ) { aStyles.push_back( pStyle ); - pStyle->AddRef(); + pStyle->AddFirstRef(); FlushIndex(); } diff --git a/xmloff/source/style/xmltabi.cxx b/xmloff/source/style/xmltabi.cxx index ab9a9af32a13..39ceff77da3b 100644 --- a/xmloff/source/style/xmltabi.cxx +++ b/xmloff/source/style/xmltabi.cxx @@ -215,7 +215,7 @@ SvXMLImportContext *SvxXMLTabStopImportContext::CreateChildContext( mpTabStops = new SvxXMLTabStopArray_Impl; mpTabStops->push_back( pTabStopContext ); - pTabStopContext->AddRef(); + pTabStopContext->AddFirstRef(); pContext = pTabStopContext; } diff --git a/xmloff/source/text/XMLTextColumnsContext.cxx b/xmloff/source/text/XMLTextColumnsContext.cxx index badf922dbd7f..986b84f71119 100644 --- a/xmloff/source/text/XMLTextColumnsContext.cxx +++ b/xmloff/source/text/XMLTextColumnsContext.cxx @@ -352,7 +352,7 @@ SvXMLImportContext *XMLTextColumnsContext::CreateChildContext( pColumns = new XMLTextColumnsArray_Impl; pColumns->push_back( pColumn ); - pColumn->AddRef(); + pColumn->AddFirstRef(); pContext = pColumn; } @@ -362,7 +362,7 @@ SvXMLImportContext *XMLTextColumnsContext::CreateChildContext( pColumnSep = new XMLTextColumnSepContext_Impl( GetImport(), nPrefix, rLocalName, xAttrList, *pColumnSepAttrTokenMap ); - pColumnSep->AddRef(); + pColumnSep->AddFirstRef(); pContext = pColumnSep; } diff --git a/xmloff/source/text/txtparaimphint.hxx b/xmloff/source/text/txtparaimphint.hxx index 8c7d8d1c237c..de1074866b39 100644 --- a/xmloff/source/text/txtparaimphint.hxx +++ b/xmloff/source/text/txtparaimphint.hxx @@ -149,7 +149,7 @@ public: { pEvents = pCtxt; if (pEvents != NULL) - pEvents->AddRef(); + pEvents->AddFirstRef(); } }; diff --git a/xmloff/source/text/txtstyli.cxx b/xmloff/source/text/txtstyli.cxx index af0fba42c9fa..5167c6b0b9a1 100644 --- a/xmloff/source/text/txtstyli.cxx +++ b/xmloff/source/text/txtstyli.cxx @@ -193,7 +193,7 @@ SvXMLImportContext *XMLTextStyleContext::CreateChildContext( // (for delayed processing of events) pEventContext = new XMLEventsImportContext( GetImport(), nPrefix, rLocalName); - pEventContext->AddRef(); + pEventContext->AddFirstRef(); pContext = pEventContext; } |