diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-08-17 10:23:50 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-08-17 10:23:50 +0200 |
commit | a82af43b526c9eca38f74f51d9af0c99c62f8121 (patch) | |
tree | 0bd6a602e03ba28ea4c7414b59c40e15f7feba8e /svl/qa | |
parent | a70f9fffe7d2751ca0401c43c92e7fb8dea571d4 (diff) |
Clean up uses of OUString::fromUtf8 around string literals
Change-Id: I9a2990e49c95a01ce505f13408be8c19db1cf5d1
Diffstat (limited to 'svl/qa')
-rw-r--r-- | svl/qa/unit/test_URIHelper.cxx | 42 |
1 files changed, 19 insertions, 23 deletions
diff --git a/svl/qa/unit/test_URIHelper.cxx b/svl/qa/unit/test_URIHelper.cxx index dc57dcd51968..66f9efe289e5 100644 --- a/svl/qa/unit/test_URIHelper.cxx +++ b/svl/qa/unit/test_URIHelper.cxx @@ -420,58 +420,54 @@ void Test::testResolveIdnaHost() { input.clear(); CPPUNIT_ASSERT_EQUAL(input, URIHelper::resolveIdnaHost(input)); - input = OUString::fromUtf8("Foo.M\xC3\xBCnchen.de"); + input = u"Foo.M\u00FCnchen.de"; CPPUNIT_ASSERT_EQUAL(input, URIHelper::resolveIdnaHost(input)); - input = OUString::fromUtf8("foo://Muenchen.de"); + input = "foo://Muenchen.de"; CPPUNIT_ASSERT_EQUAL(input, URIHelper::resolveIdnaHost(input)); - input = OUString::fromUtf8("foo://-M\xC3\xBCnchen.de"); + input = u"foo://-M\u00FCnchen.de"; CPPUNIT_ASSERT_EQUAL(input, URIHelper::resolveIdnaHost(input)); - input = OUString::fromUtf8("foo://M\xC3\xBCnchen-.de"); + input = u"foo://M\u00FCnchen-.de"; CPPUNIT_ASSERT_EQUAL(input, URIHelper::resolveIdnaHost(input)); - input = OUString::fromUtf8("foo://xn--M\xC3\xBCnchen.de"); + input = u"foo://xn--M\u00FCnchen.de"; CPPUNIT_ASSERT_EQUAL(input, URIHelper::resolveIdnaHost(input)); - input = OUString::fromUtf8("foo://xy--M\xC3\xBCnchen.de"); + input = u"foo://xy--M\u00FCnchen.de"; CPPUNIT_ASSERT_EQUAL(input, URIHelper::resolveIdnaHost(input)); - input = OUString::fromUtf8("foo://.M\xC3\xBCnchen.de"); + input = u"foo://.M\u00FCnchen.de"; CPPUNIT_ASSERT_EQUAL(input, URIHelper::resolveIdnaHost(input)); - input = OUString::fromUtf8("foo://-bar.M\xC3\xBCnchen.de"); + input = u"foo://-bar.M\u00FCnchen.de"; CPPUNIT_ASSERT_EQUAL(input, URIHelper::resolveIdnaHost(input)); - input = OUString::fromUtf8("foo://bar-.M\xC3\xBCnchen.de"); + input = u"foo://bar-.M\u00FCnchen.de"; CPPUNIT_ASSERT_EQUAL(input, URIHelper::resolveIdnaHost(input)); - input = OUString::fromUtf8("foo://xn--bar.M\xC3\xBCnchen.de"); + input = u"foo://xn--bar.M\u00FCnchen.de"; CPPUNIT_ASSERT_EQUAL(input, URIHelper::resolveIdnaHost(input)); - input = OUString::fromUtf8("foo://xy--bar.M\xC3\xBCnchen.de"); + input = u"foo://xy--bar.M\u00FCnchen.de"; CPPUNIT_ASSERT_EQUAL(input, URIHelper::resolveIdnaHost(input)); CPPUNIT_ASSERT_EQUAL( - OUString::fromUtf8("foo://M\xC3\xBCnchen@xn--mnchen-3ya.de"), - URIHelper::resolveIdnaHost( - OUString::fromUtf8("foo://M\xC3\xBCnchen@M\xC3\xBCnchen.de"))); + OUString(u"foo://M\u00FCnchen@xn--mnchen-3ya.de"), + URIHelper::resolveIdnaHost(u"foo://M\u00FCnchen@M\u00FCnchen.de")); CPPUNIT_ASSERT_EQUAL( - OUString::fromUtf8("foo://xn--mnchen-3ya.de."), - URIHelper::resolveIdnaHost( - OUString::fromUtf8("foo://M\xC3\xBCnchen.de."))); + OUString("foo://xn--mnchen-3ya.de."), + URIHelper::resolveIdnaHost(u"foo://M\u00FCnchen.de.")); CPPUNIT_ASSERT_EQUAL( - OUString::fromUtf8("Foo://bar@xn--mnchen-3ya.de:123/?bar#baz"), - URIHelper::resolveIdnaHost( - OUString::fromUtf8("Foo://bar@M\xC3\xBCnchen.de:123/?bar#baz"))); + OUString("Foo://bar@xn--mnchen-3ya.de:123/?bar#baz"), + URIHelper::resolveIdnaHost(u"Foo://bar@M\u00FCnchen.de:123/?bar#baz")); CPPUNIT_ASSERT_EQUAL( - OUString::fromUtf8("foo://xn--mnchen-3ya.de"), - URIHelper::resolveIdnaHost( - OUString::fromUtf8("foo://Mu\xCC\x88nchen.de"))); + OUString("foo://xn--mnchen-3ya.de"), + URIHelper::resolveIdnaHost(u"foo://Mu\u0308nchen.de")); } css::uno::Reference< css::uno::XComponentContext > Test::m_context; |