[Libreoffice-commits] core.git: sw/qa

Stephan Bergmann sbergman at redhat.com
Tue Jul 14 08:08:27 PDT 2015


 sw/qa/extras/uiwriter/uiwriter.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit e46bf197d98a199bf235c6d6820848d98854e67f
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jul 14 17:07:39 2015 +0200

    loplugin:salbool
    
    Change-Id: Ia8df87e2b6803ebe4ab8d3defa147d20ca8d7422

diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index 08d05d5..b0e0457 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -1157,8 +1157,8 @@ void SwUiWriterTest::testTextSearch()
     CPPUNIT_ASSERT_EQUAL(uno::makeAny(float(com::sun::star::awt::FontWeight::BOLD)), aPropVal2[0].Value);
     //specifying the search attributes
     uno::Reference<beans::XPropertySet> xPropSet(xSearchDes, uno::UNO_QUERY_THROW);
-    xPropSet->setPropertyValue(OUString("SearchWords"), uno::makeAny(sal_Bool(true)));
-    xPropSet->setPropertyValue(OUString("SearchCaseSensitive"), uno::makeAny(sal_Bool(true)));
+    xPropSet->setPropertyValue(OUString("SearchWords"), uno::makeAny(true));
+    xPropSet->setPropertyValue(OUString("SearchCaseSensitive"), uno::makeAny(true));
     //this will search all the BOLD words
     uno::Reference<container::XIndexAccess> xIndex(xSearch->findAll(xSearchDes));
     CPPUNIT_ASSERT_EQUAL(sal_Int32(2), xIndex->getCount());


More information about the Libreoffice-commits mailing list