[Libreoffice-commits] core.git: sc/qa

Stephan Bergmann sbergman at redhat.com
Wed Aug 23 15:18:26 UTC 2017


 sc/qa/unit/subsequent_filters-test.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit f8fa4631f35799f1afeec2ecba7eec5bbdba95e5
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Aug 23 17:15:38 2017 +0200

    Clean up string construction
    
    Change-Id: I41ca0c7c9ac1892cc87eb4dbba858527aa340c75

diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 86a67c2cea91..32712ca12ee4 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -3939,8 +3939,7 @@ void ScFiltersTest::testUnicodeFileNameGnumeric()
     if (osl_getThreadTextEncoding() != RTL_TEXTENCODING_UTF8) {
         return;
     }
-    OString aFileNamePrefix= "t" + OString(RTL_CONSTASCII_STRINGPARAM("\u00e4\u00df")) + "t.";
-    ScDocShellRef xDocSh = loadDoc(OStringToOUString(aFileNamePrefix, RTL_TEXTENCODING_UTF8), FORMAT_GNUMERIC);
+    ScDocShellRef xDocSh = loadDoc(u"t\u00E4\u00DFt.", FORMAT_GNUMERIC);
     CPPUNIT_ASSERT(xDocSh.is());
 
     xDocSh->DoClose();


More information about the Libreoffice-commits mailing list