X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fdbms%2FDate.cpp;fp=source%2Fdbms%2FDate.cpp;h=f8811e4a7a1cfdb01aa39248c87352a056018343;hp=5c9afafae940695fe66e192e2f2eaf2702f948c7;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/dbms/Date.cpp b/source/dbms/Date.cpp index 5c9afaf..f8811e4 100644 --- a/source/dbms/Date.cpp +++ b/source/dbms/Date.cpp @@ -47,7 +47,7 @@ Date::~Date() { } const char* dbms::Date::getCStringValue() const -throw() { +{ const char* format; if((format = a_format) == NULL) @@ -57,7 +57,7 @@ throw() { } Date& Date::operator = (const Date & other) -throw(RuntimeException) { +noexcept(false) { if(this != &other) { if(other.isNull() == true) { setNull(true); @@ -72,7 +72,7 @@ throw(RuntimeException) { } void Date::setValue(const char* str) -throw(RuntimeException) { +noexcept(false) { if(a_format == NULL) { string msg(asString()); msg += " | anna::dbms::Data::setValue (const char*) requires format especification"; @@ -95,7 +95,7 @@ throw(RuntimeException) { } void Date::setValue(const Second &second) -throw(RuntimeException) { +noexcept(false) { tm* aux = localtime((time_t*) & second); if(aux == NULL) { @@ -110,7 +110,7 @@ throw(RuntimeException) { } void dbms::Date::set(const char* what, int& variable, const int value, const int min, const int max) -throw(RuntimeException) { +noexcept(false) { if(value < min) { string msg(what); msg += functions::asText(" must be greater than or equal to ", min); @@ -128,7 +128,7 @@ throw(RuntimeException) { } string dbms::Date::asString() const -throw() { +{ const char* cstring; string result("dbms::Date { "); result += dbms::Data::asString();