aboutsummaryrefslogtreecommitdiff
path: root/src/transformations/defmodel_exceptions.hpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-05-17 23:26:24 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-05-17 23:26:24 +0200
commit9c501221de38e0e4462e9852df8f5a621688de68 (patch)
treec52d2291a3a6f29a90057b2fcd49e96ac8054767 /src/transformations/defmodel_exceptions.hpp
parent0403980832dbaadad73e51da76ac0e71d37eec85 (diff)
downloadPROJ-9c501221de38e0e4462e9852df8f5a621688de68.tar.gz
PROJ-9c501221de38e0e4462e9852df8f5a621688de68.zip
Address warnings raised by recent cppcheck
Diffstat (limited to 'src/transformations/defmodel_exceptions.hpp')
-rw-r--r--src/transformations/defmodel_exceptions.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transformations/defmodel_exceptions.hpp b/src/transformations/defmodel_exceptions.hpp
index 8addf60f..4fc40f6f 100644
--- a/src/transformations/defmodel_exceptions.hpp
+++ b/src/transformations/defmodel_exceptions.hpp
@@ -38,7 +38,7 @@ namespace DEFORMATON_MODEL_NAMESPACE {
/** Parsing exception. */
class ParsingException : public std::exception {
public:
- ParsingException(const std::string &msg) : msg_(msg) {}
+ explicit ParsingException(const std::string &msg) : msg_(msg) {}
const char *what() const noexcept override;
private:
@@ -51,7 +51,7 @@ const char *ParsingException::what() const noexcept { return msg_.c_str(); }
class UnimplementedException : public std::exception {
public:
- UnimplementedException(const std::string &msg) : msg_(msg) {}
+ explicit UnimplementedException(const std::string &msg) : msg_(msg) {}
const char *what() const noexcept override;
private:
@@ -67,7 +67,7 @@ const char *UnimplementedException::what() const noexcept {
/** Evaluator exception. */
class EvaluatorException : public std::exception {
public:
- EvaluatorException(const std::string &msg) : msg_(msg) {}
+ explicit EvaluatorException(const std::string &msg) : msg_(msg) {}
const char *what() const noexcept override;
private: