From 13e995b811e80dc48c0769274d3dca3a2221b843 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Thu, 17 Aug 2017 23:02:50 +0200 Subject: 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) --- src/database-postgresql.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/database-postgresql.h') diff --git a/src/database-postgresql.h b/src/database-postgresql.h index 94d651e24..db0b505c9 100644 --- a/src/database-postgresql.h +++ b/src/database-postgresql.h @@ -111,7 +111,7 @@ class MapDatabasePostgreSQL : private Database_PostgreSQL, public MapDatabase { public: MapDatabasePostgreSQL(const std::string &connect_string); - virtual ~MapDatabasePostgreSQL() {} + virtual ~MapDatabasePostgreSQL() = default; bool saveBlock(const v3s16 &pos, const std::string &data); void loadBlock(const v3s16 &pos, std::string *block); @@ -130,7 +130,7 @@ class PlayerDatabasePostgreSQL : private Database_PostgreSQL, public PlayerDatab { public: PlayerDatabasePostgreSQL(const std::string &connect_string); - virtual ~PlayerDatabasePostgreSQL() {} + virtual ~PlayerDatabasePostgreSQL() = default; void savePlayer(RemotePlayer *player); bool loadPlayer(RemotePlayer *player, PlayerSAO *sao); -- cgit v1.2.3