diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-11 08:46:23 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-11 08:46:23 +0200 |
commit | c82c94b40157c08bbbc524b2dc02714cbe82dc65 (patch) | |
tree | 3ecdf9d17884c7d729debc5852524135a579ce4a | |
parent | a2716e53c140b09d886591a3d6611ee8f166e417 (diff) |
loplugin:staticmethods
Change-Id: If54b3017296f5bcea01b3b0d24d9ac821f6a24e9
-rw-r--r-- | sc/inc/externalrefmgr.hxx | 1 | ||||
-rw-r--r-- | sc/source/ui/docshell/externalrefmgr.cxx | 11 |
2 files changed, 8 insertions, 4 deletions
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx index 792c0059c3b9..cd94c737b6ee 100644 --- a/sc/inc/externalrefmgr.hxx +++ b/sc/inc/externalrefmgr.hxx @@ -794,7 +794,6 @@ private: */ void transformUnsavedRefToSavedRef( SfxObjectShell* pShell ); - void insertRefCell(RefCellMap::iterator& itr, ScFormulaCell* pCell); private: ScDocument* mpDoc; diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx index 442ff2f0a366..042201ded1c8 100644 --- a/sc/source/ui/docshell/externalrefmgr.cxx +++ b/sc/source/ui/docshell/externalrefmgr.cxx @@ -2038,7 +2038,10 @@ void ScExternalRefManager::refreshAllRefCells(sal_uInt16 nFileId) pVShell->PaintGrid(); } -void ScExternalRefManager::insertRefCell(RefCellMap::iterator& itr, ScFormulaCell* pCell) +namespace { + +void insertRefCellByIterator( + ScExternalRefManager::RefCellMap::iterator& itr, ScFormulaCell* pCell) { if (pCell) { @@ -2047,6 +2050,8 @@ void ScExternalRefManager::insertRefCell(RefCellMap::iterator& itr, ScFormulaCel } } +} + void ScExternalRefManager::insertRefCell(sal_uInt16 nFileId, const ScAddress& rCell) { RefCellMap::iterator itr = maRefCells.find(nFileId); @@ -2062,7 +2067,7 @@ void ScExternalRefManager::insertRefCell(sal_uInt16 nFileId, const ScAddress& rC itr = r.first; } - insertRefCell(itr, mpDoc->GetFormulaCell(rCell)); + insertRefCellByIterator(itr, mpDoc->GetFormulaCell(rCell)); } void ScExternalRefManager::insertRefCellFromTemplate( ScFormulaCell* pTemplateCell, ScFormulaCell* pCell ) @@ -2073,7 +2078,7 @@ void ScExternalRefManager::insertRefCellFromTemplate( ScFormulaCell* pTemplateCe for (RefCellMap::iterator itr = maRefCells.begin(); itr != maRefCells.end(); ++itr) { if (itr->second.find(pTemplateCell) != itr->second.end()) - insertRefCell(itr, pCell); + insertRefCellByIterator(itr, pCell); } } |