aboutsummaryrefslogtreecommitdiff
path: root/src/metadata.h
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-11-04 16:57:41 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-11-04 16:57:41 +0100
commit6ccb5835ff55d85156be91473c598eca9d6cb9a6 (patch)
tree7f1eaf8b94694c8e24e206909ba8f55a1ebfbb3e /src/metadata.h
parent244713971a976e43e8740b6a9d9d122e37020ef2 (diff)
downloaddragonfireclient-6ccb5835ff55d85156be91473c598eca9d6cb9a6.tar.xz
Revert "Make Lint Happy"
This reverts commit ad148587dcf5244c2d2011dba339786c765c54c4.
Diffstat (limited to 'src/metadata.h')
-rw-r--r--src/metadata.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/metadata.h b/src/metadata.h
index 68b5c8f3c..5333f8a9d 100644
--- a/src/metadata.h
+++ b/src/metadata.h
@@ -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 @@ public:
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 @@ public:
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;
};