diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-13 09:56:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-13 10:17:26 +0000 |
commit | 8325fcb56d014c12f35808ae6ad17f68b7a1cdd2 (patch) | |
tree | 295fe60b2a4926f1f76e734a59bd08d6601ec386 /formula/source | |
parent | 5a616ca96c41b1e3d6dc2bca370f0797dfef7511 (diff) |
cppcheck: noExplicitConstructor
Change-Id: Ife26f55c28c4631aec4ba4105225bfca72da8bff
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 12 | ||||
-rw-r--r-- | formula/source/ui/dlg/structpg.hxx | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index cafab24a10b2..e32a6f9abe82 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -45,12 +45,12 @@ namespace { class FormulaCompilerRecursionGuard { -private: - short& rRecursion; -public: - FormulaCompilerRecursionGuard( short& rRec ) - : rRecursion( rRec ) { ++rRecursion; } - ~FormulaCompilerRecursionGuard() { --rRecursion; } + private: + short& rRecursion; + public: + explicit FormulaCompilerRecursionGuard( short& rRec ) + : rRecursion( rRec ) { ++rRecursion; } + ~FormulaCompilerRecursionGuard() { --rRecursion; } }; short lcl_GetRetFormat( OpCode eOpCode ) diff --git a/formula/source/ui/dlg/structpg.hxx b/formula/source/ui/dlg/structpg.hxx index cb8642cbe78e..c2a66906179e 100644 --- a/formula/source/ui/dlg/structpg.hxx +++ b/formula/source/ui/dlg/structpg.hxx @@ -88,7 +88,7 @@ protected: public: - StructPage( vcl::Window* pParent); + explicit StructPage(vcl::Window* pParent); virtual ~StructPage(); virtual void dispose() override; |