diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-03-24 13:25:08 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-03-24 13:25:08 +0100 |
commit | c38ad62b696082f90a3cefd098bed4ff96fcf540 (patch) | |
tree | 110001265b7317d46c36a01565eca64889b72792 /sw | |
parent | bd3a84a985c726f59bbb9562cc823bcca836040d (diff) |
loplugin:stringconstant
Change-Id: I5fd84f0ab85c94831a9064561423a4634a9ac2ab
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/ww8export/ww8export.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/ww8export/ww8export.cxx b/sw/qa/extras/ww8export/ww8export.cxx index 3a50b3ea953a..2347fdc297c0 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); |