summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-11 08:46:23 +0200
committerTor Lillqvist <tml@collabora.com>2015-09-07 08:29:05 +0300
commit8f501013d9940a02e2f966208328202e3b35574b (patch)
tree3d135b7de38d331831cbd69b10433461e98ac9b4 /sc
parent5ee3bf7e81e25d3a5cf6aa07bba9b7dbb7edd1a1 (diff)
loplugin:staticmethods
Change-Id: If54b3017296f5bcea01b3b0d24d9ac821f6a24e9 (cherry picked from commit c82c94b40157c08bbbc524b2dc02714cbe82dc65)
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/externalrefmgr.hxx1
-rw-r--r--sc/source/ui/docshell/externalrefmgr.cxx11
2 files changed, 8 insertions, 4 deletions
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx
index 1105136a4c04..edc6208dd617 100644
--- a/sc/inc/externalrefmgr.hxx
+++ b/sc/inc/externalrefmgr.hxx
@@ -796,7 +796,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 8bb9e7d61dd0..36a388249be3 100644
--- a/sc/source/ui/docshell/externalrefmgr.cxx
+++ b/sc/source/ui/docshell/externalrefmgr.cxx
@@ -2043,7 +2043,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)
{
@@ -2052,6 +2055,8 @@ void ScExternalRefManager::insertRefCell(RefCellMap::iterator& itr, ScFormulaCel
}
}
+}
+
void ScExternalRefManager::insertRefCell(sal_uInt16 nFileId, const ScAddress& rCell)
{
RefCellMap::iterator itr = maRefCells.find(nFileId);
@@ -2067,7 +2072,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 )
@@ -2078,7 +2083,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);
}
}