diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-02 10:28:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-02 10:28:16 +0100 |
| commit | 5591a50b918d2dc784a9e15688dfe24eb2b6dfcc (patch) | |
| tree | 0cc8e92c88326bd023440956a839f72979322071 /src/exceptions.h | |
| parent | 68fa6e44a938d963129db758c25af8e843771a85 (diff) | |
Add some explicit declarations to constructors.
Diffstat (limited to 'src/exceptions.h')
| -rw-r--r-- | src/exceptions.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/exceptions.h b/src/exceptions.h index 2f7bc6a9..da75e0b6 100644 --- a/src/exceptions.h +++ b/src/exceptions.h @@ -71,7 +71,7 @@ public: class MiscError : public std::runtime_error { public: - MiscError (std::string message) + explicit MiscError (std::string message) : std::runtime_error (message) {} }; @@ -82,7 +82,7 @@ public: class DCPReadError : public std::runtime_error { public: - DCPReadError (std::string message) + explicit DCPReadError (std::string message) : std::runtime_error (message) {} }; @@ -110,7 +110,7 @@ public: class XMLError : public std::runtime_error { public: - XMLError (std::string message) + explicit XMLError (std::string message) : std::runtime_error (message) {} }; @@ -121,7 +121,7 @@ public: class UnresolvedRefError : public std::runtime_error { public: - UnresolvedRefError (std::string id); + explicit UnresolvedRefError (std::string id); }; /** @class TimeFormatError @@ -130,7 +130,7 @@ public: class TimeFormatError : public std::runtime_error { public: - TimeFormatError (std::string bad_time); + explicit TimeFormatError (std::string bad_time); }; /** @class NotEncryptedError @@ -140,7 +140,7 @@ public: class NotEncryptedError : public std::runtime_error { public: - NotEncryptedError (std::string const & what); + explicit NotEncryptedError (std::string const & what); ~NotEncryptedError () throw () {} }; |
