summaryrefslogtreecommitdiff
path: root/src/database.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2016-05-14 12:23:15 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2016-05-17 06:52:16 +0200
commit143401451c457da5079b2970fe260acea45bd85a (patch)
tree390c729ba28f974bf422d441dfd8dd7e817e4127 /src/database.h
parentdecbd396df0855f0a356c836cf7c0c5b133964cf (diff)
downloadminetest-143401451c457da5079b2970fe260acea45bd85a.tar.gz
minetest-143401451c457da5079b2970fe260acea45bd85a.tar.bz2
minetest-143401451c457da5079b2970fe260acea45bd85a.zip
DB::loadBlock copy removal & DB backend cleanup
* Remove the copy from db::loadBlock by using a pointer to the destination * cleanup db backend, the child backend doesn't have to set their functions as virtual
Diffstat (limited to 'src/database.h')
-rw-r--r--src/database.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.h b/src/database.h
index cee7b6fd9..0cf75232f 100644
--- a/src/database.h
+++ b/src/database.h
@@ -38,7 +38,7 @@ public:
virtual void endSave() {}
virtual bool saveBlock(const v3s16 &pos, const std::string &data) = 0;
- virtual std::string loadBlock(const v3s16 &pos) = 0;
+ virtual void loadBlock(const v3s16 &pos, std::string *block) = 0;
virtual bool deleteBlock(const v3s16 &pos) = 0;
static s64 getBlockAsInteger(const v3s16 &pos);