From c446adbcbd0fac9668de9cb3c48f3b57b95ba785 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 18 Nov 2020 00:00:24 +0100 Subject: Clarify signature of some opertor() that must match ColorSelectFunction Change-Id: Ibb71d1e993bbb0fa453c59f48ab5f7c79e1d8025 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106036 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- reportdesign/source/ui/dlg/Condition.cxx | 3 ++- reportdesign/source/ui/dlg/Condition.hxx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'reportdesign') diff --git a/reportdesign/source/ui/dlg/Condition.cxx b/reportdesign/source/ui/dlg/Condition.cxx index 2b44e1e549be..9918cd22abcc 100644 --- a/reportdesign/source/ui/dlg/Condition.cxx +++ b/reportdesign/source/ui/dlg/Condition.cxx @@ -73,7 +73,8 @@ ConditionColorWrapper::ConditionColorWrapper(Condition* pControl, sal_uInt16 nSl { } -void ConditionColorWrapper::operator()(const OUString& /*rCommand*/, const NamedColor& rNamedColor) +void ConditionColorWrapper::operator()( + [[maybe_unused]] const OUString& /*rCommand*/, const NamedColor& rNamedColor) { mpControl->ApplyCommand(mnSlotId, rNamedColor); } diff --git a/reportdesign/source/ui/dlg/Condition.hxx b/reportdesign/source/ui/dlg/Condition.hxx index 641c1a2bf5dc..fe6fbb707356 100644 --- a/reportdesign/source/ui/dlg/Condition.hxx +++ b/reportdesign/source/ui/dlg/Condition.hxx @@ -59,6 +59,7 @@ namespace rptui public: ConditionColorWrapper(Condition* pControl, sal_uInt16 nSlotId); void operator()(const OUString& rCommand, const NamedColor& rColor); + // ColorSelectFunction signature private: Condition* mpControl; sal_uInt16 mnSlotId; -- cgit