summaryrefslogtreecommitdiff
path: root/sal/qa/rtl
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2023-11-29 14:40:14 +0100
committerStephan Bergmann <stephan.bergmann@allotropia.de>2023-11-29 19:38:09 +0100
commit9bccf92aba991366952261e51183455efa67da13 (patch)
tree4ef6bbbabfa1f3e59591734c7356af91e8d1be3e /sal/qa/rtl
parent692a116c27ea24d3245d38fe5063d8f84c07f7f2 (diff)
Extended loplugin:ostr: sal
Change-Id: Ieca8096e2af9615fa4c34557a47bc13ee5c23936 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160105 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'sal/qa/rtl')
-rw-r--r--sal/qa/rtl/ostring/rtl_str.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/qa/rtl/ostring/rtl_str.cxx b/sal/qa/rtl/ostring/rtl_str.cxx
index c4e13ff619a9..834559f7cfb0 100644
--- a/sal/qa/rtl/ostring/rtl_str.cxx
+++ b/sal/qa/rtl/ostring/rtl_str.cxx
@@ -394,11 +394,11 @@ namespace rtl_str
sal_Int32 nIndex = rtl_str_lastIndexOfStr( aStr1.getStr(), aSearchStr.getStr() );
CPPUNIT_ASSERT_EQUAL_MESSAGE("index is wrong.", sal_Int32(15), nIndex);
- /* OString */ aSearchStr = "Line";
+ /* OString */ aSearchStr = "Line"_ostr;
/* sal_Int32 */ nIndex = rtl_str_lastIndexOfStr( aStr1.getStr(), aSearchStr.getStr() );
CPPUNIT_ASSERT_EQUAL_MESSAGE("index is wrong.", sal_Int32(0), nIndex);
- /* OString */ aSearchStr = "";
+ /* OString */ aSearchStr = ""_ostr;
/* sal_Int32 */ nIndex = rtl_str_lastIndexOfStr( aStr1.getStr(), aSearchStr.getStr() );
CPPUNIT_ASSERT_EQUAL_MESSAGE("index is wrong.", sal_Int32(-1), nIndex);
}