Modernize client code (#6250)
[oweals/minetest.git] / src / database-redis.h
index 3addaa20a7ad0c8e6e01fd997f03973d28353dc5..1e7909f857b4654fff31302367eb55b932ea0f1e 100644 (file)
@@ -24,13 +24,13 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #if USE_REDIS
 
-#include "database.h"
 #include <hiredis.h>
 #include <string>
+#include "database.h"
 
 class Settings;
 
-class Database_Redis : public Database
+class Database_Redis : public MapDatabase
 {
 public:
        Database_Redis(Settings &conf);
@@ -45,11 +45,10 @@ public:
        void listAllLoadableBlocks(std::vector<v3s16> &dst);
 
 private:
-       redisContext *ctx;
-       std::string hash;
+       redisContext *ctx = nullptr;
+       std::string hash = "";
 };
 
 #endif // USE_REDIS
 
 #endif
-