]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/serialize.h
Use IsCTCP in blockcolor for ignoring CTCPs.
[user/henk/code/inspircd.git] / include / serialize.h
index b3783a48fe16604da33d934d355dd61e22b2dfef..192fd29d3cdba3b44be69178b9746fea336d58a3 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2019 Peter Powell <petpow@saberuk.com>
+ *   Copyright (C) 2019-2020 Sadie Powell <sadie@witchery.services>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
@@ -31,10 +31,10 @@ class CoreExport Serializable
        {
        public:
                /** Maps keys to serialised data. */
-               typedef TR1NS::unordered_map<std::string, Data> ChildMap;
+               typedef insp::flat_map<std::string, Data> ChildMap;
 
                /** Maps keys to simple values. */
-               typedef TR1NS::unordered_map<std::string, std::string> EntryMap;
+               typedef insp::flat_map<std::string, std::string> EntryMap;
 
        private:
                /** A mapping of keys to serialised data. */
@@ -82,19 +82,19 @@ class CoreExport Serializable
 
                /** Stores the serialised data against the specified key.
                 * @param key The key by which this serialised data should be stored against.
-                * @param out The serialised data to store.
+                * @param value The serialised data to store.
                 */
                Data& Store(const std::string& key, const Data& value);
 
                /** Stores the value against the specified key.
                 * @param key The key by which this value should be stored against.
-                * @param out The value to store.
+                * @param value The value to store.
                 */
                Data& Store(const std::string& key, const std::string& value);
 
                /** Stores the value against the specified key. The value will be converted to a string using ConvToStr.
                 * @param key The key by which this value should be stored against.
-                * @param out The value to store.
+                * @param value The value to store.
                 */
                template <typename T>
                Data& Store(const std::string& key, const T& value)