diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-08-19 11:30:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-19 11:30:46 +0200 |
commit | 1992db1395d9c068327a7c08bac7a24ef7112274 (patch) | |
tree | 3fb4982e4662a9519e08b57cab228c6b26d4a57f /src/metadata.cpp | |
parent | 4a1265ceb5919c53efaa8c50bbb0fe7955aa47aa (diff) | |
download | minetest-1992db1395d9c068327a7c08bac7a24ef7112274.tar.gz minetest-1992db1395d9c068327a7c08bac7a24ef7112274.tar.bz2 minetest-1992db1395d9c068327a7c08bac7a24ef7112274.zip |
Code modernization: src/n*, src/o* (#6280)
* Code modernization: src/n*, src/o*
* empty function
* default constructor/destructor
* for range-based loops
* use emplace_back instead of push_back
* remove unused IWritableNodeDefManager::clone()
* C++ STL header style
* Pointer constness in some functions
Diffstat (limited to 'src/metadata.cpp')
-rw-r--r-- | src/metadata.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/metadata.cpp b/src/metadata.cpp index 628e38c15..6ad65e007 100644 --- a/src/metadata.cpp +++ b/src/metadata.cpp @@ -50,8 +50,7 @@ bool Metadata::operator==(const Metadata &other) const return false; for (const auto &sv : m_stringvars) { - if (!other.contains(sv.first) || - other.getString(sv.first) != sv.second) + if (!other.contains(sv.first) || other.getString(sv.first) != sv.second) return false; } |