From c66bd7e206a0a6c71f6685d8fca0495165e2b5e9 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Thu, 18 Aug 2016 09:32:49 +0200 Subject: Pull the cSettingsRepositoryInterface::noID constant into cIniFile Lua API. This re-adds the cIniFile.noID constant into the Lua API --- src/IniFile.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/IniFile.h b/src/IniFile.h index 37bf451d7..802eb9982 100644 --- a/src/IniFile.h +++ b/src/IniFile.h @@ -33,6 +33,9 @@ class cIniFile : public cSettingsRepositoryInterface { private: + typedef cSettingsRepositoryInterface Super; + + bool m_IsCaseInsensitive; AString m_Filename; @@ -56,6 +59,14 @@ private: public: + // NOTE: This has to be present for ToLua++'s parser to output the noID constant into the API + // We don't want to export the entire base class, so the constant needs to get pulled into this descendant + enum + { + noID = Super::noID, + }; + + /** Creates a new instance with no data */ cIniFile(void); -- cgit v1.2.3