diff options
author | deva <deva> | 2009-07-24 09:13:28 +0000 |
---|---|---|
committer | deva <deva> | 2009-07-24 09:13:28 +0000 |
commit | 74e8a4a4e07238d7aefab9dc038aeb9339a69515 (patch) | |
tree | 7503e05d9f215873f0317dd4636fde5f8c85d721 /server/src/versionstr.cc | |
parent | fa72729cdfdcbae8cd7f119d4aae505ce2910be2 (diff) |
Added exception throwing info.
Diffstat (limited to 'server/src/versionstr.cc')
-rw-r--r-- | server/src/versionstr.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/server/src/versionstr.cc b/server/src/versionstr.cc index bfa8bb4..6069dce 100644 --- a/server/src/versionstr.cc +++ b/server/src/versionstr.cc @@ -27,8 +27,6 @@ */ #include "versionstr.h" -#include "exception.h" - #include <memory.h> #include <stdlib.h> @@ -43,7 +41,7 @@ #undef patch #endif -VersionStr::VersionStr(std::string v) +VersionStr::VersionStr(std::string v) throw(Exception) { memset(version, 0, sizeof(version)); set(v); @@ -56,7 +54,7 @@ VersionStr::VersionStr(size_t major, size_t minor, size_t patch) version[2] = patch; } -void VersionStr::set(std::string v) +void VersionStr::set(std::string v) throw(Exception) { std::string num; size_t idx = 0; @@ -87,7 +85,7 @@ VersionStr::operator std::string() const return v; } -void VersionStr::operator=(std::string v) +void VersionStr::operator=(std::string v) throw(Exception) { set(v); } |