X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fdbms%2FString.cpp;fp=source%2Fdbms%2FString.cpp;h=dc3af035c302a02150911503c3f4a0b787fea8d8;hp=2e7e6fb666a89ad253e982b5ed082cf2ca3c2568;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/dbms/String.cpp b/source/dbms/String.cpp index 2e7e6fb..dc3af03 100644 --- a/source/dbms/String.cpp +++ b/source/dbms/String.cpp @@ -12,7 +12,7 @@ using namespace anna; using namespace anna::dbms; String& String::operator = (const String & other) -throw(RuntimeException) { +noexcept(false) { if(this == &other) return *this; @@ -26,7 +26,7 @@ throw(RuntimeException) { } String& String::operator = (const char * str) -throw(RuntimeException) { +noexcept(false) { if(a_value != str) { if(anna_strlen(str) > Data::getMaxSize()) throw RuntimeException( @@ -42,7 +42,7 @@ throw(RuntimeException) { } char* String::strip(char *str) -throw() { +{ int len; if(str == NULL || (len = anna_strlen(str)) == 0) @@ -59,7 +59,7 @@ throw() { } std::string dbms::String::asString() const -throw() { +{ std::string result("dbms::String { "); result += dbms::Data::asString(); result += " | Value: ";