diff options
author | André Nusser <andre.nusser@googlemail.com> | 2018-06-07 17:08:31 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2018-06-07 17:08:31 +0200 |
commit | f9541d8b78bb59713eede3748a4e1bb5776ef87c (patch) | |
tree | d578a565285bca82075eafa338577288d6a5e1c1 /src | |
parent | 7418abaeb3130423bedd6bcb3cef0eb2565ed5d6 (diff) |
Fix warning.
Diffstat (limited to 'src')
-rw-r--r-- | src/versionstr.cc | 6 | ||||
-rw-r--r-- | src/versionstr.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/versionstr.cc b/src/versionstr.cc index 604d7c1..a46f221 100644 --- a/src/versionstr.cc +++ b/src/versionstr.cc @@ -43,7 +43,7 @@ #undef patch #endif -VersionStr::VersionStr(const std::string& v) throw(const char*) +VersionStr::VersionStr(const std::string& v) { memset(version, 0, sizeof(version)); set(v); @@ -56,7 +56,7 @@ VersionStr::VersionStr(size_t major, size_t minor, size_t patch) version[2] = patch; } -void VersionStr::set(const std::string& v) throw(const char*) +void VersionStr::set(const std::string& v) { std::string num; size_t idx = 0; @@ -104,7 +104,7 @@ VersionStr::operator std::string() const return v; } -void VersionStr::operator=(const std::string& v) throw(const char*) +void VersionStr::operator=(const std::string& v) { set(v); } diff --git a/src/versionstr.h b/src/versionstr.h index f168332..48eb40a 100644 --- a/src/versionstr.h +++ b/src/versionstr.h @@ -55,7 +55,7 @@ public: * @param v A std::string containing a version string on the form a.b or * a.b.c */ - VersionStr(const std::string& v) throw(const char*); + VersionStr(const std::string& v); /** * Constructor. @@ -78,7 +78,7 @@ public: * Same as in the VersionStr(std::string v) constructor. * Throws an exeption if the string does not parse. */ - void operator=(const std::string& v) throw(const char*); + void operator=(const std::string& v); /** * Comparison operator. @@ -107,6 +107,6 @@ public: size_t patch() const; private: - void set(const std::string& v) throw(const char*); + void set(const std::string& v); size_t version[3]; }; |