From e6bf3f2dcc83a915d8ebc273fd9648fcf2495c35 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 18 Dec 2014 13:35:30 +0100 Subject: test: Use appropriate OUString functions on string constants Change-Id: Id4327a479fd61b3793a2b8b250203edcfe3e6754 --- test/source/sheet/xsheetannotation.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/source') 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() { -- cgit v1.2.3