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

Stephan Bergmann sbergman at redhat.com
Fri Aug 21 09:07:40 PDT 2015


 sw/qa/core/macros-test.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit cbe115061aed6bcb5ea27b438059cddbd37ec441
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Aug 21 18:07:11 2015 +0200

    loplugin:defaultparams
    
    Change-Id: Id81d6a9aeeb282acf9b961c1a0c7c3961bc17b72

diff --git a/sw/qa/core/macros-test.cxx b/sw/qa/core/macros-test.cxx
index 4887199..5a039b2 100644
--- a/sw/qa/core/macros-test.cxx
+++ b/sw/qa/core/macros-test.cxx
@@ -214,7 +214,7 @@ void SwMacrosTest::testBookmarkDeleteAndJoin()
     aPaM.Exchange();
     aPaM.Move(fnMoveBackward, fnGoDoc);
     // delete
-    rIDCO.DeleteAndJoin(aPaM, false);
+    rIDCO.DeleteAndJoin(aPaM);
 
     for (IDocumentMarkAccess::const_iterator_t i = rIDMA.getAllMarksBegin(); i != rIDMA.getAllMarksEnd(); ++i)
     {
@@ -243,7 +243,7 @@ void SwMacrosTest::testBookmarkDeleteTdf90816()
     CPPUNIT_ASSERT(pMark);
 
     // delete the same selection as the bookmark
-    rIDCO.DeleteAndJoin(aPaM, false);
+    rIDCO.DeleteAndJoin(aPaM);
 
     // bookmark still there?
     auto iter = rIDMA.getAllMarksBegin();
@@ -440,7 +440,7 @@ void SwMacrosTest::testFindReplace()
     SwDoc *const pDoc = pTextDoc->GetDocShell()->GetDoc();
     SwNodeIndex aIdx(pDoc->GetNodes().GetEndOfContent(), -1);
     // use a UnoCrsr so it will be corrected when deleting nodes
-    auto pPaM(pDoc->CreateUnoCrsr(SwPosition(aIdx), false));
+    auto pPaM(pDoc->CreateUnoCrsr(SwPosition(aIdx)));
 
     IDocumentContentOperations & rIDCO(pDoc->getIDocumentContentOperations());
     rIDCO.InsertString(*pPaM, OUString("foo"));
@@ -464,7 +464,7 @@ void SwMacrosTest::testFindReplace()
 
     // find newline on 1st paragraph
     bool bFound = pPaM->Find(
-            opts, false, DOCPOS_CURR, DOCPOS_END, bCancel, FND_IN_BODY, false);
+            opts, false, DOCPOS_CURR, DOCPOS_END, bCancel, FND_IN_BODY);
     CPPUNIT_ASSERT(bFound);
     CPPUNIT_ASSERT(pPaM->HasMark());
     CPPUNIT_ASSERT_EQUAL(OUString(""), pPaM->GetText());
@@ -472,7 +472,7 @@ void SwMacrosTest::testFindReplace()
     // now do another Find, inside the selection from the first Find
 //    opts.searchFlags = 71680;
     bFound = pPaM->Find(
-            opts, false, DOCPOS_CURR, DOCPOS_END, bCancel, FND_IN_SEL, false);
+            opts, false, DOCPOS_CURR, DOCPOS_END, bCancel, FND_IN_SEL);
     CPPUNIT_ASSERT(bFound);
     CPPUNIT_ASSERT(pPaM->HasMark());
     CPPUNIT_ASSERT_EQUAL(OUString(""), pPaM->GetText());


More information about the Libreoffice-commits mailing list