From be3b34fcea6512c8e5c4e170c50caaa7f14bb15a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 3 Nov 2020 18:43:19 +0000 Subject: Rename ConfigItems to ConfigTag::Items. --- include/configreader.h | 10 +++++++--- include/typedefs.h | 4 ---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/configreader.h b/include/configreader.h index e1ade7ed9..4f93c2c7e 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -42,8 +42,12 @@ /** Structure representing a single \ in config */ class CoreExport ConfigTag { +public: + /** A mapping of configuration keys to their assigned values. */ + typedef insp::flat_map Items; + private: - ConfigItems items; + Items items; public: const std::string tag; @@ -100,10 +104,10 @@ class CoreExport ConfigTag std::string getTagLocation() const; - inline const ConfigItems& getItems() const { return items; } + inline const Items& GetItems() const { return items; } /** Create a new ConfigTag, giving access to the private ConfigItems item list */ - static std::shared_ptr create(const std::string& Tag, const std::string& file, int line, ConfigItems*& Items); + static std::shared_ptr create(const std::string& Tag, const std::string& file, int line, Items*& Items); private: ConfigTag(const std::string& Tag, const std::string& file, int line); }; diff --git a/include/typedefs.h b/include/typedefs.h index 518bb4d63..90d2d93db 100644 --- a/include/typedefs.h +++ b/include/typedefs.h @@ -95,10 +95,6 @@ typedef std::vector IncludeChanList; */ typedef std::vector file_cache; -/** A mapping of configuration keys to their assigned values. - */ -typedef insp::flat_map ConfigItems; - /** The entire configuration */ typedef std::multimap, irc::insensitive_swo> ConfigDataHash; -- cgit v1.3.1-10-gc9f91