X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=source%2Fcore%2Futil%2FTextManager.cpp;fp=source%2Fcore%2Futil%2FTextManager.cpp;h=982ba7872088b687aa92119549d06231ef14d417;hp=6762aebe678d5db82f0a4a8abf207092cb20d2d6;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/source/core/util/TextManager.cpp b/source/core/util/TextManager.cpp index 6762aeb..982ba78 100644 --- a/source/core/util/TextManager.cpp +++ b/source/core/util/TextManager.cpp @@ -22,7 +22,7 @@ TextManager::TextManager(const char* name) : } void TextManager::clear() -throw() { +{ Guard guard(*this, "TextManager::clear"); for(TextComposerVector::iterator ii = a_composers.begin(), maxii = a_composers.end(); ii != maxii; ii ++) @@ -32,7 +32,7 @@ throw() { } void TextManager::create(const int composer, const char* expression) -throw(RuntimeException) { +noexcept(false) { TextComposer* result = NULL; Guard guard(*this, "TextManager::create"); @@ -65,7 +65,7 @@ throw(RuntimeException) { } TextComposer& TextManager::find(const int composer) -throw(RuntimeException) { +noexcept(false) { TextComposer* result; Guard guard(*this, "TextManager::find"); @@ -80,18 +80,18 @@ throw(RuntimeException) { } const TextComposer& TextManager::find(const int composer) const -throw(RuntimeException) { +noexcept(false) { const TextComposer& result = const_cast (this)->find(composer); return result; } TextComposer* TextManager::createTextComposer(const int composer, const char* expression) -throw() { +{ return new TextComposer(composer, expression); } TextComposer* TextManager::xfind(const int composer) -throw() { +{ for(TextComposerVector::iterator ii = a_composers.begin(), maxii = a_composers.end(); ii != maxii; ii ++) if((*ii)->getId() == composer) { return (*ii);