diff --git a/external/etk b/external/etk index 5ceab908..a8462354 160000 --- a/external/etk +++ b/external/etk @@ -1 +1 @@ -Subproject commit 5ceab908cf8d069404e62c107db2807bad486925 +Subproject commit a8462354d803970b15fc0df5f16ca737c817ed54 diff --git a/sources/ewol/resources/ConfigFile.cpp b/sources/ewol/resources/ConfigFile.cpp index 3341fd4f..9fdf19aa 100644 --- a/sources/ewol/resources/ConfigFile.cpp +++ b/sources/ewol/resources/ConfigFile.cpp @@ -26,7 +26,7 @@ void ewol::SimpleConfigElement::parse(const etk::UString& value) { -ewol::ConfigFile::ConfigFile(const etk::UString& _filename): +ewol::ConfigFile::ConfigFile(const etk::UString& _filename) : ewol::Resource(_filename) { EWOL_DEBUG("SFP : load \"" << _filename << "\""); reload(); @@ -44,7 +44,6 @@ ewol::ConfigFile::~ConfigFile(void) { m_list.clear(); } - void ewol::ConfigFile::reload(void) { // reset all parameters for (int32_t iii=0; iiigetInteger(); }; - float getFloat(int32_t _id) { if (_id<0) { return 0; } return m_list[_id]->getFloat(); }; - etk::UString& getString(int32_t _id) { if (_id<0) { return m_errorString; } return m_list[_id]->getString(); }; + int32_t getInteger(int32_t _id) { + if (_id<0) { + return 0; + } + return m_list[_id]->getInteger(); + }; + float getFloat(int32_t _id) { + if (_id<0) { + return 0; + } + return m_list[_id]->getFloat(); + }; + etk::UString& getString(int32_t _id) { + if (_id<0) { + return m_errorString; + } + return m_list[_id]->getString(); + }; public: /** * @brief keep the resource pointer.