summaryrefslogtreecommitdiff
path: root/sc/qa/unit
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/unit')
-rw-r--r--sc/qa/unit/helper/qahelper.cxx6
-rw-r--r--sc/qa/unit/helper/qahelper.hxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx
index b24072714cb5..b58bee67cb88 100644
--- a/sc/qa/unit/helper/qahelper.cxx
+++ b/sc/qa/unit/helper/qahelper.cxx
@@ -290,7 +290,7 @@ void ScModelTestBase::goToCell(const OUString& rCell)
dispatchCommand(mxComponent, u".uno:GoToCell"_ustr, aArgs);
}
-void ScModelTestBase::typeString(const std::u16string_view& rStr)
+void ScModelTestBase::typeString(std::u16string_view rStr)
{
ScModelObj* pModelObj = comphelper::getFromUnoTunnel<ScModelObj>(mxComponent);
for (const char16_t c : rStr)
@@ -301,7 +301,7 @@ void ScModelTestBase::typeString(const std::u16string_view& rStr)
}
}
-void ScModelTestBase::insertStringToCell(const OUString& rCell, const std::u16string_view& rStr)
+void ScModelTestBase::insertStringToCell(const OUString& rCell, std::u16string_view rStr)
{
goToCell(rCell);
@@ -313,7 +313,7 @@ void ScModelTestBase::insertStringToCell(const OUString& rCell, const std::u16st
Scheduler::ProcessEventsToIdle();
}
-void ScModelTestBase::insertArrayToCell(const OUString& rCell, const std::u16string_view& rStr)
+void ScModelTestBase::insertArrayToCell(const OUString& rCell, std::u16string_view rStr)
{
goToCell(rCell);
diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx
index 6eeb111ad25b..a2d46916a521 100644
--- a/sc/qa/unit/helper/qahelper.hxx
+++ b/sc/qa/unit/helper/qahelper.hxx
@@ -179,9 +179,9 @@ public:
void testFormats(ScDocument* pDoc,std::u16string_view sFormat);
void goToCell(const OUString& rCell);
- void typeString(const std::u16string_view& rStr);
- void insertStringToCell(const OUString& rCell, const std::u16string_view& rStr);
- void insertArrayToCell(const OUString& rCell, const std::u16string_view& rStr);
+ void typeString(std::u16string_view rStr);
+ void insertStringToCell(const OUString& rCell, std::u16string_view rStr);
+ void insertArrayToCell(const OUString& rCell, std::u16string_view rStr);
void insertNewSheet(ScDocument& rDoc);
void executeAutoSum();