summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfunc.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2019-08-19 01:30:26 +0800
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2019-08-19 22:56:40 +0800
commit739c370522df4d48898b924e3c29957054f71a78 (patch)
tree58d2dc1ff49f8638198ccebec28d58cfe3db70fa /sc/source/ui/view/viewfunc.cxx
parent147ae53b68844aa1b088926931f958e30888ffda (diff)
uitest: pass OUString by const reference and formatting fixes
Change-Id: I55eca745a84998c74e2d925ed53af20382d98289
Diffstat (limited to 'sc/source/ui/view/viewfunc.cxx')
-rw-r--r--sc/source/ui/view/viewfunc.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 13c8bd708812..ad9f4a61cd05 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -101,11 +101,11 @@ ScViewFunc::~ScViewFunc()
namespace {
-void collectUIInformation(const std::map<OUString, OUString>& aParameters,const OUString action)
+void collectUIInformation(const std::map<OUString, OUString>& aParameters, const OUString& rAction)
{
EventDescription aDescription;
aDescription.aID = "grid_window";
- aDescription.aAction = action;
+ aDescription.aAction = rAction;
aDescription.aParameters = aParameters;
aDescription.aParent = "MainWindow";
aDescription.aKeyWord = "ScGridWinUIObject";
@@ -1636,7 +1636,7 @@ bool ScViewFunc::InsertCells( InsCellCmd eCmd, bool bRecord, bool bPartOfPaste )
}
OUString aStartAddress = aRange.aStart.GetColRowString();
OUString aEndAddress = aRange.aEnd.GetColRowString();
- collectUIInformation({{"RANGE", aStartAddress + ":" + aEndAddress}},"INSERT_CELLS");
+ collectUIInformation({{"RANGE", aStartAddress + ":" + aEndAddress}}, "INSERT_CELLS");
return bSuccess;
}
else
@@ -1724,7 +1724,7 @@ void ScViewFunc::DeleteCells( DelCellCmd eCmd )
OUString aStartAddress = aRange.aStart.GetColRowString();
OUString aEndAddress = aRange.aEnd.GetColRowString();
- collectUIInformation({{"RANGE", aStartAddress + ":" + aEndAddress}},"DELETE_CELLS");
+ collectUIInformation({{"RANGE", aStartAddress + ":" + aEndAddress}}, "DELETE_CELLS");
Unmark();
}
@@ -2005,7 +2005,7 @@ void ScViewFunc::DeleteContents( InsertDeleteFlags nFlags )
}
OUString aStartAddress = aMarkRange.aStart.GetColRowString();
OUString aEndAddress = aMarkRange.aEnd.GetColRowString();
- collectUIInformation({{"RANGE", aStartAddress + ":" + aEndAddress}},"DELETE");
+ collectUIInformation({{"RANGE", aStartAddress + ":" + aEndAddress}}, "DELETE");
}
// column width/row height (via header) - undo OK