Remove dynamic exceptions
[anna.git] / source / core / util / TextComposer.cpp
index 465ea49..8471655 100644 (file)
@@ -44,7 +44,7 @@ TextComposer::~TextComposer() {
  *    var2 => nombre = variable2 => "%02d el resto"
  */
 void TextComposer::initialize()
-throw(RuntimeException) {
+noexcept(false) {
   Tokenizer variables(a_expression, "${");
   Tokenizer idAndText;
   Tokenizer nameAndFormat;
@@ -105,7 +105,7 @@ throw(RuntimeException) {
 }
 
 TextVariable* TextComposer::find(const char* name, const Exception::Mode::_v emode)
-throw(RuntimeException) {
+noexcept(false) {
   for(variable_iterator ii = begin(), maxii = end(); ii != maxii; ii ++) {
     if(anna_strcmp(textVariable(ii)->getName(), name) == 0)
       return textVariable(ii);
@@ -125,7 +125,7 @@ throw(RuntimeException) {
 }
 
 String TextComposer::apply() const
-throw(RuntimeException) {
+noexcept(false) {
   LOGMETHOD(TraceMethod ttmm(Logger::Local7, "TextComposer::apply", ANNA_FILE_LOCATION));
   String result;
 // No hace falta proteger porque sólo se podrá acceder desde el Protector
@@ -155,7 +155,7 @@ throw(RuntimeException) {
 }
 
 String TextComposer::asString() const
-throw() {
+{
   String result("TextComposer { Id: ");
   result << a_id;
   result << " | Expression: " << a_expression;
@@ -164,7 +164,7 @@ throw() {
 
 //static
 TextVariable::Type::_v TextComposer::calculeType(const char* format)
-throw(RuntimeException) {
+noexcept(false) {
   static const char* typeInteger = "[:digit:]*d";
   static const char* typeString = "[:digit:]*s";
   static const char* typeFloat = "([:digit:]*.[:digit:]|.[:digit:]*)f|f";