mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user