summaryrefslogtreecommitdiff
path: root/test/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-18 13:35:30 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-18 14:12:35 +0100
commite6bf3f2dcc83a915d8ebc273fd9648fcf2495c35 (patch)
tree5342ee246acf37a45fb7856542b5ced246731d80 /test/source
parentb1fab4ab325636eacf7c0387d55b6cc184f89c5f (diff)
test: Use appropriate OUString functions on string constants
Change-Id: Id4327a479fd61b3793a2b8b250203edcfe3e6754
Diffstat (limited to 'test/source')
-rw-r--r--test/source/sheet/xsheetannotation.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/source/sheet/xsheetannotation.cxx b/test/source/sheet/xsheetannotation.cxx
index e59f94a224e1..fd118ab44281 100644
--- a/test/source/sheet/xsheetannotation.cxx
+++ b/test/source/sheet/xsheetannotation.cxx
@@ -40,14 +40,14 @@ void XSheetAnnotation::testGetAuthor()
uno::Reference< sheet::XSheetAnnotation > aSheetAnnotation (init(), UNO_QUERY_THROW);
OUString aAuthor = aSheetAnnotation->getAuthor();
- CPPUNIT_ASSERT_MESSAGE("Wrong author", aAuthor.equals("LG"));
+ CPPUNIT_ASSERT_MESSAGE("Wrong author", aAuthor == "LG");
}
void XSheetAnnotation::testGetDate()
{
uno::Reference< sheet::XSheetAnnotation > aSheetAnnotation (init(), UNO_QUERY_THROW);
OUString aDate = aSheetAnnotation->getDate();
- CPPUNIT_ASSERT_MESSAGE("Wrong date", aDate.equals("01/17/2013"));
+ CPPUNIT_ASSERT_MESSAGE("Wrong date", aDate == "01/17/2013");
}
void XSheetAnnotation::testGetIsVisible()
{