diff options
author | rubenwardy <rubenwardy@gmail.com> | 2017-01-31 16:43:45 +0000 |
---|---|---|
committer | rubenwardy <rubenwardy@gmail.com> | 2017-02-04 22:07:55 +0000 |
commit | c2e7b1f57941cb34cb7e3d71dc040fad53a64e3e (patch) | |
tree | d62246a6838911aef8b71fd420e8b6c2ac455993 /src/metadata.h | |
parent | 13f94ecad5d4fcda08663ee91e45b4a205a1dadb (diff) | |
download | minetest-c2e7b1f57941cb34cb7e3d71dc040fad53a64e3e.tar.gz minetest-c2e7b1f57941cb34cb7e3d71dc040fad53a64e3e.tar.bz2 minetest-c2e7b1f57941cb34cb7e3d71dc040fad53a64e3e.zip |
Derive NodeMetaRef from MetaDataRef
Diffstat (limited to 'src/metadata.h')
-rw-r--r-- | src/metadata.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/metadata.h b/src/metadata.h index a96bfc408..a629c0615 100644 --- a/src/metadata.h +++ b/src/metadata.h @@ -44,10 +44,10 @@ public: bool empty() const; // Generic key/value store - std::string getString(const std::string &name, u16 recursion = 0) const; + const std::string &getString(const std::string &name, u16 recursion = 0) const; void setString(const std::string &name, const std::string &var); // Support variable names in values - std::string resolveString(const std::string &str, u16 recursion = 0) const; + const std::string &resolveString(const std::string &str, u16 recursion = 0) const; const StringMap &getStrings() const { return m_stringvars; |