diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-02 23:05:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-12-03 21:19:28 +0100 |
| commit | c85f253637e6aecfd7ce7bd53c68a2a73ca49d7b (patch) | |
| tree | c855a15665e4bc7b857350d59050547ff927a4af /src/lib/exceptions.h | |
| parent | 1702a1693f0d9407877b6b3bfda5af47e557f16f (diff) | |
Missing explicit.
Diffstat (limited to 'src/lib/exceptions.h')
| -rw-r--r-- | src/lib/exceptions.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h index 9b7837a46..28dd46814 100644 --- a/src/lib/exceptions.h +++ b/src/lib/exceptions.h @@ -155,7 +155,7 @@ public: class FileNotFoundError : public std::runtime_error { public: - FileNotFoundError (boost::filesystem::path f); + explicit FileNotFoundError (boost::filesystem::path f); virtual ~FileNotFoundError () throw () {} /** @return name of the file that this exception concerns */ @@ -178,7 +178,7 @@ public: /** @param f File that we were trying to read from. * @param e errno value, or 0. */ - ReadFileError (boost::filesystem::path f, int e = 0); + explicit ReadFileError (boost::filesystem::path f, int e = 0); }; @@ -378,7 +378,7 @@ class GLError : public std::runtime_error { public: GLError (char const* last, int e); - GLError (char const* message); + explicit GLError (char const* message); }; @@ -388,7 +388,7 @@ public: class CopyError : public std::runtime_error { public: - CopyError (std::string s, boost::optional<int> n = boost::optional<int>()); + explicit CopyError (std::string s, boost::optional<int> n = boost::optional<int>()); virtual ~CopyError () throw () {} std::string message () const { |
