summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-23 13:16:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-12-26 14:51:15 +0100
commita3d0091d185f39eddabf4d372ebe0ac3061dbb89 (patch)
tree4d70cedc274972ccc21b6b8e7105f042090cf5d6 /writerperfect
parentaf791fb775e35c11ad01c42a7085dd121ab9c7a6 (diff)
New loplugin:stringliteralvar
See the comment at the top of compilerplugins/clang/stringliteralvar.cxx for details. (Turned some affected variables in included files into inline variables, to avoid GCC warnings about unused variables.) Change-Id: Ie77219e6adfdaaceaa8b4e590b08971f2f04c83a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108239 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/qa/unit/DirectoryStreamTest.cxx6
-rw-r--r--writerperfect/qa/unit/EPUBExportTest.cxx2
-rw-r--r--writerperfect/qa/unit/WPXSvStreamTest.cxx4
3 files changed, 6 insertions, 6 deletions
diff --git a/writerperfect/qa/unit/DirectoryStreamTest.cxx b/writerperfect/qa/unit/DirectoryStreamTest.cxx
index fcf77743c0c5..cbb55a91126b 100644
--- a/writerperfect/qa/unit/DirectoryStreamTest.cxx
+++ b/writerperfect/qa/unit/DirectoryStreamTest.cxx
@@ -56,9 +56,9 @@ private:
uno::Reference<ucb::XContent> m_xNonexistent;
};
-const char g_aDirPath[] = "/writerperfect/qa/unit/data/stream/test.dir";
-const char g_aNondirPath[] = "/writerperfect/qa/unit/data/stream/test.dir/mimetype";
-const char g_aNonexistentPath[] = "/writerperfect/qa/unit/data/stream/foo/bar";
+const OUStringLiteral g_aDirPath = u"/writerperfect/qa/unit/data/stream/test.dir";
+const OUStringLiteral g_aNondirPath = u"/writerperfect/qa/unit/data/stream/test.dir/mimetype";
+const OUStringLiteral g_aNonexistentPath = u"/writerperfect/qa/unit/data/stream/foo/bar";
DirectoryStreamTest::DirectoryStreamTest()
{
diff --git a/writerperfect/qa/unit/EPUBExportTest.cxx b/writerperfect/qa/unit/EPUBExportTest.cxx
index 247448ba32c9..cfdefd25c377 100644
--- a/writerperfect/qa/unit/EPUBExportTest.cxx
+++ b/writerperfect/qa/unit/EPUBExportTest.cxx
@@ -30,7 +30,7 @@ using namespace ::com::sun::star;
namespace
{
-char const DATA_DIRECTORY[] = "/writerperfect/qa/unit/data/writer/epubexport/";
+OUStringLiteral const DATA_DIRECTORY = u"/writerperfect/qa/unit/data/writer/epubexport/";
/// Tests the EPUB export filter.
class EPUBExportTest : public test::BootstrapFixture,
diff --git a/writerperfect/qa/unit/WPXSvStreamTest.cxx b/writerperfect/qa/unit/WPXSvStreamTest.cxx
index 21715229e299..8a41aeedbced 100644
--- a/writerperfect/qa/unit/WPXSvStreamTest.cxx
+++ b/writerperfect/qa/unit/WPXSvStreamTest.cxx
@@ -64,8 +64,8 @@ private:
};
const char aText[] = "hello world";
-const char aOLEFile[] = "/writerperfect/qa/unit/data/stream/fdo40686-1.doc";
-const char aZipFile[] = "/writerperfect/qa/unit/data/stream/test.odt";
+const OUStringLiteral aOLEFile = u"/writerperfect/qa/unit/data/stream/fdo40686-1.doc";
+const OUStringLiteral aZipFile = u"/writerperfect/qa/unit/data/stream/test.odt";
shared_ptr<RVNGInputStream> lcl_createStream()
{