Kaydet (Commit) c38ad62b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant

Change-Id: I5fd84f0ab85c94831a9064561423a4634a9ac2ab
üst bd3a84a9
...@@ -508,12 +508,12 @@ DECLARE_WW8EXPORT_TEST(testCommentExport, "comment-export.odt") ...@@ -508,12 +508,12 @@ DECLARE_WW8EXPORT_TEST(testCommentExport, "comment-export.odt")
uno::Reference<beans::XPropertySet> xPropertySet(xRun, uno::UNO_QUERY); uno::Reference<beans::XPropertySet> xPropertySet(xRun, uno::UNO_QUERY);
CPPUNIT_ASSERT_EQUAL(sKind, getProperty<OUString>(xPropertySet, "TextPortionType")); CPPUNIT_ASSERT_EQUAL(sKind, getProperty<OUString>(xPropertySet, "TextPortionType"));
if (sKind == OUString("Text")) if (sKind == "Text")
{ {
// Check if textportion has the correct text // Check if textportion has the correct text
CPPUNIT_ASSERT_EQUAL(aTextPortions[i].sText, xRun->getString()); 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 // 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); uno::Reference<beans::XPropertySet> xComment(getProperty< uno::Reference<beans::XPropertySet> >(xRun, "TextField"), uno::UNO_QUERY);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment