X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fapp%2Ffunctions.hpp;fp=include%2Fanna%2Fapp%2Ffunctions.hpp;h=695c35ad03f91751bbc9de0b991d7ab8eff5cbcd;hp=c078917b3c15f8947b1ed2b2390775f309c6be47;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/app/functions.hpp b/include/anna/app/functions.hpp index c078917..695c35a 100644 --- a/include/anna/app/functions.hpp +++ b/include/anna/app/functions.hpp @@ -26,7 +26,7 @@ struct functions : public anna::functions { /** Devuelve la referencia de la instancia de nuestra aplicacion */ - static Application& getApp() throw(RuntimeException); + static Application& getApp() noexcept(false); /** @@ -41,7 +41,7 @@ struct functions : public anna::functions { \see Component */ template static T* componentByName(const char *className, const char* fromFile, const int fromLine) - throw(anna::RuntimeException) { + noexcept(false) { T* result = static_cast (functions::getApp().find(className)); if(result == NULL) { @@ -64,12 +64,12 @@ struct functions : public anna::functions { \return Application component instance for the class provided at the pattern \warning T class must implement a method in the form: \code - static const char* getClassName () throw (); + static const char* getClassName () ; \endcode \see Component */ template static T* component(const char* fromFile, const int fromLine) - throw(RuntimeException) { + noexcept(false) { return functions::componentByName (T::getClassName(), fromFile, fromLine); }