Common: Move 'GetSection' functions to be public

This commit is contained in:
iwubcode 2021-02-27 12:21:23 -06:00
parent 9d0983c9c9
commit 158674c274

View File

@ -154,6 +154,8 @@ public:
void SortSections(); void SortSections();
Section* GetOrCreateSection(std::string_view section_name); Section* GetOrCreateSection(std::string_view section_name);
const Section* GetSection(std::string_view section_name) const;
Section* GetSection(std::string_view section_name);
// This function is related to parsing data from lines of INI files // This function is related to parsing data from lines of INI files
// It's used outside of IniFile, which is why it is exposed publicly // It's used outside of IniFile, which is why it is exposed publicly
@ -165,8 +167,5 @@ public:
private: private:
std::list<Section> sections; std::list<Section> sections;
const Section* GetSection(std::string_view section_name) const;
Section* GetSection(std::string_view section_name);
static const std::string& NULL_STRING; static const std::string& NULL_STRING;
}; };