summaryrefslogtreecommitdiff
path: root/svl/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-11-19 14:43:20 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-11-19 18:26:53 +0100
commit23641bffb78fed4db99a0a906b6d80335340c9a3 (patch)
tree01b4f08ab348dd1ec22ad9c9e19f95eb93036f0f /svl/qa
parent85c25ec9f198e9c335cb6f622acdab67a9c41f71 (diff)
Extended loplugin:ostr: svl
Change-Id: Ia74b15213a05da36f48932811d70d231ec7ee164 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159673 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svl/qa')
-rw-r--r--svl/qa/unit/test_INetContentType.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svl/qa/unit/test_INetContentType.cxx b/svl/qa/unit/test_INetContentType.cxx
index b68796726e0e..288cfe919008 100644
--- a/svl/qa/unit/test_INetContentType.cxx
+++ b/svl/qa/unit/test_INetContentType.cxx
@@ -47,7 +47,7 @@ void Test::testBad() {
CPPUNIT_ASSERT(!INetContentTypes::parse(in, t, s, &ps));
CPPUNIT_ASSERT(t.isEmpty());
CPPUNIT_ASSERT(s.isEmpty());
- CPPUNIT_ASSERT(bool(ps.end() == ps.find("foo")));
+ CPPUNIT_ASSERT(bool(ps.end() == ps.find("foo"_ostr)));
}
void Test::testFull() {
@@ -61,7 +61,7 @@ void Test::testFull() {
CPPUNIT_ASSERT(INetContentTypes::parse(in, t, s, &ps));
CPPUNIT_ASSERT_EQUAL(OUString("foo"), t);
CPPUNIT_ASSERT_EQUAL(OUString("bar"), s);
- auto iter = ps.find("baz");
+ auto iter = ps.find("baz"_ostr);
CPPUNIT_ASSERT(iter != ps.end());
CPPUNIT_ASSERT_EQUAL(OUString("boz"), iter->second.m_sValue);
}
@@ -77,7 +77,7 @@ void Test::testFollow() {
CPPUNIT_ASSERT(!INetContentTypes::parse(in, t, s));
CPPUNIT_ASSERT(t.isEmpty());
CPPUNIT_ASSERT(s.isEmpty());
- CPPUNIT_ASSERT(bool(ps.end() == ps.find("baz")));
+ CPPUNIT_ASSERT(bool(ps.end() == ps.find("baz"_ostr)));
}
CPPUNIT_TEST_SUITE_REGISTRATION(Test);