[Libreoffice-commits] core.git: sw/qa
Stephan Bergmann
sbergman at redhat.com
Tue Mar 24 05:25:39 PDT 2015
sw/qa/extras/ww8export/ww8export.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c38ad62b696082f90a3cefd098bed4ff96fcf540
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Mar 24 13:25:08 2015 +0100
loplugin:stringconstant
Change-Id: I5fd84f0ab85c94831a9064561423a4634a9ac2ab
diff --git a/sw/qa/extras/ww8export/ww8export.cxx b/sw/qa/extras/ww8export/ww8export.cxx
index 3a50b3e..2347fdc 100644
--- a/sw/qa/extras/ww8export/ww8export.cxx
+++ b/sw/qa/extras/ww8export/ww8export.cxx
@@ -508,12 +508,12 @@ DECLARE_WW8EXPORT_TEST(testCommentExport, "comment-export.odt")
uno::Reference<beans::XPropertySet> xPropertySet(xRun, uno::UNO_QUERY);
CPPUNIT_ASSERT_EQUAL(sKind, getProperty<OUString>(xPropertySet, "TextPortionType"));
- if (sKind == OUString("Text"))
+ if (sKind == "Text")
{
// Check if textportion has the correct text
CPPUNIT_ASSERT_EQUAL(aTextPortions[i].sText, xRun->getString());
}
- else if (sKind == OUString("Annotation"))
+ else if (sKind == "Annotation")
{
// Check if the comment text is correct and save the name of the comment
uno::Reference<beans::XPropertySet> xComment(getProperty< uno::Reference<beans::XPropertySet> >(xRun, "TextField"), uno::UNO_QUERY);
More information about the Libreoffice-commits
mailing list