Kaydet (Commit) 8f501013 authored tarafından Stephan Bergmann's avatar Stephan Bergmann Kaydeden (comit) Tor Lillqvist

loplugin:staticmethods

Change-Id: If54b3017296f5bcea01b3b0d24d9ac821f6a24e9
(cherry picked from commit c82c94b4)
üst 5ee3bf7e
...@@ -796,7 +796,6 @@ private: ...@@ -796,7 +796,6 @@ private:
*/ */
void transformUnsavedRefToSavedRef( SfxObjectShell* pShell ); void transformUnsavedRefToSavedRef( SfxObjectShell* pShell );
void insertRefCell(RefCellMap::iterator& itr, ScFormulaCell* pCell);
private: private:
ScDocument* mpDoc; ScDocument* mpDoc;
......
...@@ -2043,7 +2043,10 @@ void ScExternalRefManager::refreshAllRefCells(sal_uInt16 nFileId) ...@@ -2043,7 +2043,10 @@ void ScExternalRefManager::refreshAllRefCells(sal_uInt16 nFileId)
pVShell->PaintGrid(); pVShell->PaintGrid();
} }
void ScExternalRefManager::insertRefCell(RefCellMap::iterator& itr, ScFormulaCell* pCell) namespace {
void insertRefCellByIterator(
ScExternalRefManager::RefCellMap::iterator& itr, ScFormulaCell* pCell)
{ {
if (pCell) if (pCell)
{ {
...@@ -2052,6 +2055,8 @@ void ScExternalRefManager::insertRefCell(RefCellMap::iterator& itr, ScFormulaCel ...@@ -2052,6 +2055,8 @@ void ScExternalRefManager::insertRefCell(RefCellMap::iterator& itr, ScFormulaCel
} }
} }
}
void ScExternalRefManager::insertRefCell(sal_uInt16 nFileId, const ScAddress& rCell) void ScExternalRefManager::insertRefCell(sal_uInt16 nFileId, const ScAddress& rCell)
{ {
RefCellMap::iterator itr = maRefCells.find(nFileId); RefCellMap::iterator itr = maRefCells.find(nFileId);
...@@ -2067,7 +2072,7 @@ void ScExternalRefManager::insertRefCell(sal_uInt16 nFileId, const ScAddress& rC ...@@ -2067,7 +2072,7 @@ void ScExternalRefManager::insertRefCell(sal_uInt16 nFileId, const ScAddress& rC
itr = r.first; itr = r.first;
} }
insertRefCell(itr, mpDoc->GetFormulaCell(rCell)); insertRefCellByIterator(itr, mpDoc->GetFormulaCell(rCell));
} }
void ScExternalRefManager::insertRefCellFromTemplate( ScFormulaCell* pTemplateCell, ScFormulaCell* pCell ) void ScExternalRefManager::insertRefCellFromTemplate( ScFormulaCell* pTemplateCell, ScFormulaCell* pCell )
...@@ -2078,7 +2083,7 @@ void ScExternalRefManager::insertRefCellFromTemplate( ScFormulaCell* pTemplateCe ...@@ -2078,7 +2083,7 @@ void ScExternalRefManager::insertRefCellFromTemplate( ScFormulaCell* pTemplateCe
for (RefCellMap::iterator itr = maRefCells.begin(); itr != maRefCells.end(); ++itr) for (RefCellMap::iterator itr = maRefCells.begin(); itr != maRefCells.end(); ++itr)
{ {
if (itr->second.find(pTemplateCell) != itr->second.end()) if (itr->second.find(pTemplateCell) != itr->second.end())
insertRefCell(itr, pCell); insertRefCellByIterator(itr, pCell);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment