summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-08-01 01:42:12 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-08-05 01:29:32 +0200
commit2ee3b6deff5d1e65ca0ba1479a1125fbea73a9ab (patch)
treed055b0fdc56cbde3495bac625e35181e3d79c503 /sc/source/ui
parent04a65e2704ee80701ca750f2e7c8c0565d2aa830 (diff)
use a anonymous namespace and sane function names
Change-Id: I8fdd5fb4f21e6c90e352089858ce98a62ac213de
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/app/inputhdl.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 2b7020251f85..e5f77e16441f 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -1120,7 +1120,9 @@ void ScInputHandler::NextFormulaEntry( bool bBack )
pActiveView->ShowCursor();
}
-static void lcl_CompleteFunction( EditView* pView, const OUString& rInsert, bool& rParInserted )
+namespace {
+
+void completeFunction( EditView* pView, const OUString& rInsert, bool& rParInserted )
{
if (pView)
{
@@ -1167,6 +1169,8 @@ static void lcl_CompleteFunction( EditView* pView, const OUString& rInsert, bool
}
}
+}
+
void ScInputHandler::PasteFunctionData()
{
if (pFormulaData && miAutoPosFormula != pFormulaData->end())
@@ -1178,8 +1182,8 @@ void ScInputHandler::PasteFunctionData()
bool bParInserted = false;
DataChanging(); // Cannot be new
- lcl_CompleteFunction( pTopView, aInsert, bParInserted );
- lcl_CompleteFunction( pTableView, aInsert, bParInserted );
+ completeFunction( pTopView, aInsert, bParInserted );
+ completeFunction( pTableView, aInsert, bParInserted );
DataChanged();
ShowTipCursor();