sw/qa/extras/ww8export/ww8export.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit c38ad62b696082f90a3cefd098bed4ff96fcf540 Author: Stephan Bergmann <sberg...@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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits