summaryrefslogtreecommitdiff
path: root/basic/qa/cppunit/test_vba.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-06 10:17:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-06 13:56:49 +0200
commit7d6e751faa545552de7859cd6530926676caf09f (patch)
treeaf1f5451761b73f5769692ac6524454c375a591d /basic/qa/cppunit/test_vba.cxx
parent84687944439f5a2d96d771429bf58bf49b084d8c (diff)
loplugin:ostr basic
Change-Id: Ie5fc4676bd1cab2c0417b479bf08dda00936469a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167191 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/qa/cppunit/test_vba.cxx')
-rw-r--r--basic/qa/cppunit/test_vba.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/qa/cppunit/test_vba.cxx b/basic/qa/cppunit/test_vba.cxx
index 8a15ba7234e8..d9c26acb87e5 100644
--- a/basic/qa/cppunit/test_vba.cxx
+++ b/basic/qa/cppunit/test_vba.cxx
@@ -164,14 +164,14 @@ void VBATest::testMiscVBAFunctions()
+ OUString::createFromAscii( macroSource[ i ] );
MacroSnippet myMacro;
- myMacro.LoadSourceFromFile("TestUtil", sMacroUtilsURL);
- myMacro.LoadSourceFromFile("TestModule", sMacroURL);
+ myMacro.LoadSourceFromFile(u"TestUtil"_ustr, sMacroUtilsURL);
+ myMacro.LoadSourceFromFile(u"TestModule"_ustr, sMacroURL);
SbxVariableRef pReturn = myMacro.Run();
CPPUNIT_ASSERT_MESSAGE("No return variable huh?", pReturn.is());
fprintf(stderr, "macro result for %s\n", macroSource[i]);
fprintf(stderr, "macro returned:\n%s\n",
OUStringToOString(pReturn->GetOUString(), RTL_TEXTENCODING_UTF8).getStr());
- CPPUNIT_ASSERT_EQUAL_MESSAGE("Result not as expected", OUString("OK"),
+ CPPUNIT_ASSERT_EQUAL_MESSAGE("Result not as expected", u"OK"_ustr,
pReturn->GetOUString());
}
}