]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/metadata.h
Revert "Make Lint Happy"
[dragonfireclient.git] / src / metadata.h
index 68b5c8f3c887664803dcc1f699fd68cebb250a0c..5333f8a9d07470265bd57dcd5580b5bb6166ce8d 100644 (file)
@@ -27,7 +27,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 class Metadata
 {
        bool m_modified = false;
-
 public:
        virtual ~Metadata() = default;
 
@@ -35,7 +34,10 @@ class Metadata
        virtual bool empty() const;
 
        bool operator==(const Metadata &other) const;
-       inline bool operator!=(const Metadata &other) const { return !(*this == other); }
+       inline bool operator!=(const Metadata &other) const
+       {
+               return !(*this == other);
+       }
 
        //
        // Key-value related
@@ -44,17 +46,18 @@ class Metadata
        size_t size() const;
        bool contains(const std::string &name) const;
        const std::string &getString(const std::string &name, u16 recursion = 0) const;
-       bool getStringToRef(const std::string &name, std::string &str,
-                       u16 recursion = 0) const;
+       bool getStringToRef(const std::string &name, std::string &str, u16 recursion = 0) const;
        virtual bool setString(const std::string &name, const std::string &var);
        inline bool removeString(const std::string &name) { return setString(name, ""); }
-       const StringMap &getStrings() const { return m_stringvars; }
+       const StringMap &getStrings() const
+       {
+               return m_stringvars;
+       }
        // Add support for variable names in values
        const std::string &resolveString(const std::string &str, u16 recursion = 0) const;
 
-       inline bool isModified() const { return m_modified; }
+       inline bool isModified() const  { return m_modified; }
        inline void setModified(bool v) { m_modified = v; }
-
 protected:
        StringMap m_stringvars;
 };