From 4ea0390faa22037f1d4f703c0882a027cf2ae643 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 2 Nov 2015 09:52:33 +0000 Subject: cppcheck: noExplicitConstructor Change-Id: I06186e8f0bbc8522f538e8639a68e816093becc2 --- sc/source/ui/docshell/autostyl.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source/ui/docshell/autostyl.cxx') diff --git a/sc/source/ui/docshell/autostyl.cxx b/sc/source/ui/docshell/autostyl.cxx index ed81680c54f2..549a3ec6e5eb 100644 --- a/sc/source/ui/docshell/autostyl.cxx +++ b/sc/source/ui/docshell/autostyl.cxx @@ -56,7 +56,7 @@ class FindByRange : public ::std::unary_function { ScRange maRange; public: - FindByRange(const ScRange& r) : maRange(r) {} + explicit FindByRange(const ScRange& r) : maRange(r) {} bool operator() (const ScAutoStyleData& rData) const { return rData.aRange == maRange; } }; @@ -64,7 +64,7 @@ class FindByTimeout : public ::std::unary_function { sal_uLong mnTimeout; public: - FindByTimeout(sal_uLong n) : mnTimeout(n) {} + explicit FindByTimeout(sal_uLong n) : mnTimeout(n) {} bool operator() (const ScAutoStyleData& rData) const { return rData.nTimeout >= mnTimeout; } }; -- cgit