diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-08-17 23:02:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 23:02:50 +0200 |
commit | 13e995b811e80dc48c0769274d3dca3a2221b843 (patch) | |
tree | b75e58314fa98b57d23fefd92547f298ea419e5f /src/database-dummy.cpp | |
parent | 921151d97a2fb2238ab514324fb95e2732248b96 (diff) | |
download | minetest-13e995b811e80dc48c0769274d3dca3a2221b843.tar.gz minetest-13e995b811e80dc48c0769274d3dca3a2221b843.tar.bz2 minetest-13e995b811e80dc48c0769274d3dca3a2221b843.zip |
Modernize src/c* src/d* and src/e* files (#6263)
* Modernize src/c* src/d* and src/e* files
* default operator
* redundant init
* delete default constructors on CraftDefinition childs (never used)
* fix some missing init values
* const ref fix reported by clang-tidy
* ranged-based for loops
* simple conditions & returns
* empty stl function instead of size
* emplace_back stl function instead of push_back + construct temp obj
* auto for some iterators
* code style fixes
* c++ stl headers instead of C stl headers (stdio.h -> cstdio)
Diffstat (limited to 'src/database-dummy.cpp')
-rw-r--r-- | src/database-dummy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database-dummy.cpp b/src/database-dummy.cpp index ef2148f70..a3d8cd579 100644 --- a/src/database-dummy.cpp +++ b/src/database-dummy.cpp @@ -33,7 +33,7 @@ bool Database_Dummy::saveBlock(const v3s16 &pos, const std::string &data) void Database_Dummy::loadBlock(const v3s16 &pos, std::string *block) { s64 i = getBlockAsInteger(pos); - std::map<s64, std::string>::iterator it = m_database.find(i); + auto it = m_database.find(i); if (it == m_database.end()) { *block = ""; return; |