summaryrefslogtreecommitdiff
path: root/oox/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-10 16:41:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-10 21:01:05 +0100
commit117ecc9870f57c3c211b4bfd35728503e1875743 (patch)
tree2d23e9fb370fb7943099b0aa1fcb6b0d41ebdedc /oox/qa
parentf2254f11e5e381b959dcaab53a7ddb101a83b561 (diff)
fix coverity parse errors
Change-Id: I4884bfb67a061b865e8cf38b2fea6de0cb1bc3d6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109057 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'oox/qa')
-rw-r--r--oox/qa/unit/drawingml.cxx2
-rw-r--r--oox/qa/unit/mathml.cxx2
-rw-r--r--oox/qa/unit/shape.cxx2
-rw-r--r--oox/qa/unit/vml.cxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/oox/qa/unit/drawingml.cxx b/oox/qa/unit/drawingml.cxx
index e5896b0b49ed..92d08b5f0c8a 100644
--- a/oox/qa/unit/drawingml.cxx
+++ b/oox/qa/unit/drawingml.cxx
@@ -95,7 +95,7 @@ void OoxDrawingmlTest::loadAndReload(const OUString& rURL, const OUString& rFilt
mxComponent = loadFromDesktop(aTempFile.GetURL());
}
-OUStringLiteral const DATA_DIRECTORY = u"/oox/qa/unit/data/";
+constexpr OUStringLiteral DATA_DIRECTORY = u"/oox/qa/unit/data/";
CPPUNIT_TEST_FIXTURE(OoxDrawingmlTest, testTransparentText)
{
diff --git a/oox/qa/unit/mathml.cxx b/oox/qa/unit/mathml.cxx
index 87bdcaee3d9a..6d502b2933d8 100644
--- a/oox/qa/unit/mathml.cxx
+++ b/oox/qa/unit/mathml.cxx
@@ -42,7 +42,7 @@ void OoxMathmlTest::tearDown()
test::BootstrapFixture::tearDown();
}
-OUStringLiteral const DATA_DIRECTORY = u"/oox/qa/unit/data/";
+constexpr OUStringLiteral DATA_DIRECTORY = u"/oox/qa/unit/data/";
CPPUNIT_TEST_FIXTURE(OoxMathmlTest, testImportCharacters)
{
diff --git a/oox/qa/unit/shape.cxx b/oox/qa/unit/shape.cxx
index 6c88ba4ea21e..6195e4955a39 100644
--- a/oox/qa/unit/shape.cxx
+++ b/oox/qa/unit/shape.cxx
@@ -22,7 +22,7 @@
using namespace ::com::sun::star;
-OUStringLiteral const DATA_DIRECTORY = u"/oox/qa/unit/data/";
+constexpr OUStringLiteral DATA_DIRECTORY = u"/oox/qa/unit/data/";
/// oox shape tests.
class OoxShapeTest : public test::BootstrapFixture, public unotest::MacrosTest
diff --git a/oox/qa/unit/vml.cxx b/oox/qa/unit/vml.cxx
index ca656a08276c..01c45b64f3ae 100644
--- a/oox/qa/unit/vml.cxx
+++ b/oox/qa/unit/vml.cxx
@@ -23,7 +23,7 @@
using namespace ::com::sun::star;
-OUStringLiteral const DATA_DIRECTORY = u"/oox/qa/unit/data/";
+constexpr OUStringLiteral DATA_DIRECTORY = u"/oox/qa/unit/data/";
/// oox vml tests.
class OoxVmlTest : public test::BootstrapFixture, public unotest::MacrosTest