X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdbms%2FDate.cpp;h=f8811e4a7a1cfdb01aa39248c87352a056018343;hb=1b744dbd580cc353d18b119eef361abe1850a91b;hp=5c9afafae940695fe66e192e2f2eaf2702f948c7;hpb=78be86969d2f26a9084b0c4af6ce43d5fa4ed3fd;p=anna.git 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();