From 718bcafd5174690a7731f9b04873e9a09f7a47b7 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Tue, 17 Feb 2015 14:30:32 +0100 Subject: Replace std::list by std::vector into ServerMap::listAllLoadableBlocks ServerMap::listAllLoadedBlocks and their database backends. This adds a speedup on database migration and /clearobjects command --- src/database.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/database.h') diff --git a/src/database.h b/src/database.h index f04c4aa50..f4a2a4e8c 100644 --- a/src/database.h +++ b/src/database.h @@ -20,7 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #ifndef DATABASE_HEADER #define DATABASE_HEADER -#include +#include #include #include "irr_v3d.h" #include "irrlichttypes.h" @@ -40,7 +40,7 @@ public: virtual bool deleteBlock(v3s16 blockpos) = 0; s64 getBlockAsInteger(const v3s16 pos) const; v3s16 getIntegerAsBlock(s64 i) const; - virtual void listAllLoadableBlocks(std::list &dst) = 0; + virtual void listAllLoadableBlocks(std::vector &dst) = 0; virtual int Initialized(void)=0; virtual ~Database() {}; }; -- cgit v1.2.3