summaryrefslogtreecommitdiff
path: root/comphelper/qa/string
diff options
context:
space:
mode:
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]);