summaryrefslogtreecommitdiff
path: root/sw/qa/extras/uiwriter/uiwriter.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-01 14:52:24 +0200
committerNoel Grandin <noel@peralex.com>2016-03-02 07:57:36 +0200
commitbd5ceabb533a3af7e4140e195de885bf23f650bf (patch)
tree5178589f4616f7d5da32e88eb09f3a73279f63ff /sw/qa/extras/uiwriter/uiwriter.cxx
parent0d34f4ac9b17348d7956285c6cefb28bea2537b6 (diff)
loplugin:unuseddefaultparam in sfx2
Change-Id: I37afde801a6468c79259fe51acbdea0614c2c8c5
Diffstat (limited to 'sw/qa/extras/uiwriter/uiwriter.cxx')
-rw-r--r--sw/qa/extras/uiwriter/uiwriter.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index 20f09574fc73..78878741cc13 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -1702,7 +1702,7 @@ void SwUiWriterTest::testTdf78742()
SfxMedium aMedium(path, StreamMode::READ | StreamMode::SHARE_DENYWRITE);
SfxFilterMatcher aMatcher(OUString("com.sun.star.text.TextDocument"));
const SfxFilter* pFilter = nullptr;
- sal_uInt32 filter = aMatcher.DetectFilter(aMedium, &pFilter, true);
+ sal_uInt32 filter = aMatcher.DetectFilter(aMedium, &pFilter);
CPPUNIT_ASSERT_EQUAL(ERRCODE_IO_ABORT, filter);
//it should not return any Filter
CPPUNIT_ASSERT(!pFilter);
@@ -1710,7 +1710,7 @@ void SwUiWriterTest::testTdf78742()
SfxMedium aMedium2(path, StreamMode::READ | StreamMode::SHARE_DENYWRITE);
SfxFilterMatcher aMatcher2;
const SfxFilter* pFilter2 = nullptr;
- sal_uInt32 filter2 = aMatcher2.DetectFilter(aMedium2, &pFilter2, true);
+ sal_uInt32 filter2 = aMatcher2.DetectFilter(aMedium2, &pFilter2);
CPPUNIT_ASSERT_EQUAL(ERRCODE_CLASS_NONE, filter2);
//Filter should be returned with proper Name
CPPUNIT_ASSERT_EQUAL(OUString("calc8"), pFilter2->GetFilterName());
@@ -1719,7 +1719,7 @@ void SwUiWriterTest::testTdf78742()
SfxMedium aMedium3(path2, StreamMode::READ | StreamMode::SHARE_DENYWRITE);
SfxFilterMatcher aMatcher3(OUString("com.sun.star.text.TextDocument"));
const SfxFilter* pFilter3 = nullptr;
- sal_uInt32 filter3 = aMatcher3.DetectFilter(aMedium3, &pFilter3, true);
+ sal_uInt32 filter3 = aMatcher3.DetectFilter(aMedium3, &pFilter3);
CPPUNIT_ASSERT_EQUAL(ERRCODE_CLASS_NONE, filter3);
//Filter should be returned with proper Name
CPPUNIT_ASSERT_EQUAL(OUString("writer8"), pFilter3->GetFilterName());