summaryrefslogtreecommitdiff
path: root/svl/qa/unit
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-02 22:29:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:29:26 +0200
commite943a42e2bd7db27679c3b99ef97f955db1244f4 (patch)
tree74c4476118fcc0a81d23fc23ff984d07549e78a5 /svl/qa/unit
parent349475566f2b8ffe191f6ed673f01b19bc0c9166 (diff)
loplugin:casttovoid: svl
Change-Id: Iec49ad76f102dc228d41beb10d7e99ed197c0ea8
Diffstat (limited to 'svl/qa/unit')
-rw-r--r--svl/qa/unit/items/test_IndexedStyleSheets.cxx3
-rw-r--r--svl/qa/unit/notify/test_SfxBroadcaster.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/svl/qa/unit/items/test_IndexedStyleSheets.cxx b/svl/qa/unit/items/test_IndexedStyleSheets.cxx
index d7cccebaa833..4cf9a9621bf0 100644
--- a/svl/qa/unit/items/test_IndexedStyleSheets.cxx
+++ b/svl/qa/unit/items/test_IndexedStyleSheets.cxx
@@ -30,8 +30,7 @@ class MockedStyleSheet : public SfxStyleSheetBase
};
struct DummyPredicate : public StyleSheetPredicate {
- bool Check(const SfxStyleSheetBase& styleSheet) override {
- (void)styleSheet; // fix compiler warning
+ bool Check(const SfxStyleSheetBase&) override {
return true;
}
};
diff --git a/svl/qa/unit/notify/test_SfxBroadcaster.cxx b/svl/qa/unit/notify/test_SfxBroadcaster.cxx
index 0e1491d7f00d..58c8df532590 100644
--- a/svl/qa/unit/notify/test_SfxBroadcaster.cxx
+++ b/svl/qa/unit/notify/test_SfxBroadcaster.cxx
@@ -42,8 +42,7 @@ public:
MockedSfxListener()
: mNotifyWasCalled(false) {}
- void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override {
- (void)(rBC); (void)(rHint); // avoid warnings about unused parameters
+ void Notify(SfxBroadcaster&, const SfxHint&) override {
mNotifyWasCalled = true;
}