summaryrefslogtreecommitdiff
path: root/comphelper/qa/string
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-02 18:47:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-03 09:18:55 +0200
commit8a9f358538e4321c64923706afeb4c594debc3eb (patch)
tree8672b452bec988566b02c52466831bed17521ce8 /comphelper/qa/string
parent4209a4781071e778224c78fda498d09b3580448d (diff)
Upcoming loplugin:elidestringvar: comphelper
Change-Id: Id388af90ca2c3dff435a1a6261e3de0c3c0dbdbd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95376 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'comphelper/qa/string')
-rw-r--r--comphelper/qa/string/test_string.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/comphelper/qa/string/test_string.cxx b/comphelper/qa/string/test_string.cxx
index 14bc3f7cebd3..abccec85691c 100644
--- a/comphelper/qa/string/test_string.cxx
+++ b/comphelper/qa/string/test_string.cxx
@@ -378,8 +378,7 @@ void TestString::testReverseString()
void TestString::testSplit()
{
- OUString aIn("CTRL+ALT+F1");
- std::vector<OUString> aRet = ::comphelper::string::split(aIn, '+');
+ std::vector<OUString> aRet = ::comphelper::string::split("CTRL+ALT+F1", '+');
CPPUNIT_ASSERT_EQUAL(size_t(3), aRet.size());
CPPUNIT_ASSERT_EQUAL(OUString("CTRL"), aRet[0]);
CPPUNIT_ASSERT_EQUAL(OUString("ALT"), aRet[1]);