From 60de96ade8bba9a4ad4c84d43cdfe3ecd74aaef0 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <github@naumov.de> Date: Thu, 16 Jun 2016 00:37:54 +0000 Subject: [PATCH] [T] Fix non-explicit qualified single param ctors. --- Tests/MathLib/TestNonlinearNewton.cpp | 2 +- Tests/MathLib/TestNonlinearPicard.cpp | 2 +- Tests/NumLib/TestODEInt.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tests/MathLib/TestNonlinearNewton.cpp b/Tests/MathLib/TestNonlinearNewton.cpp index fe853d08f05..4a58dc722bc 100644 --- a/Tests/MathLib/TestNonlinearNewton.cpp +++ b/Tests/MathLib/TestNonlinearNewton.cpp @@ -29,7 +29,7 @@ template<class F_JACOBIAN> class ScalarDx { public: - ScalarDx(F_JACOBIAN &f_J) : _f_Jacobian(f_J) {} + explicit ScalarDx(F_JACOBIAN &f_J) : _f_Jacobian(f_J) {} // dx = - r/J void operator()(const double &x, const double &r, double &dx) { diff --git a/Tests/MathLib/TestNonlinearPicard.cpp b/Tests/MathLib/TestNonlinearPicard.cpp index 34f3a9b188f..dcfde74741a 100644 --- a/Tests/MathLib/TestNonlinearPicard.cpp +++ b/Tests/MathLib/TestNonlinearPicard.cpp @@ -51,7 +51,7 @@ public: class Example2 { public: - Example2(std::size_t n) : A(n, n), b(n) {} + explicit Example2(std::size_t n) : A(n, n), b(n) {} void operator()(VectorType &x, VectorType &x_new) { diff --git a/Tests/NumLib/TestODEInt.cpp b/Tests/NumLib/TestODEInt.cpp index 19137e73b21..ff55ff1078c 100644 --- a/Tests/NumLib/TestODEInt.cpp +++ b/Tests/NumLib/TestODEInt.cpp @@ -26,7 +26,7 @@ public: using LinearSolver = MathLib::LinearSolver<Matrix, Vector>; using NLSolver = NumLib::NonlinearSolver<Matrix, Vector, NLTag>; - TestOutput(const char* name) + explicit TestOutput(const char* name) : _file_name_part(name) {} -- GitLab