From 231e38ae8e9f8398e9f107fc2e65edcdff1b06ca Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Thu, 26 Dec 2013 20:18:33 +0100 Subject: [PATCH] Replace QVector, QList with std::vector, std::list An exception is made of TexPool, which will need a bit more testing before transitioning to std containers. Also replace 'int' with 'size_t' where it is used only as an array index. --- binding-mri/binding-mri.cpp | 11 +-- binding-mruby/mrb-ext/file.cpp | 20 ++--- binding-mruby/mrb-ext/marshal.cpp | 20 +++-- binding-mruby/mrb-ext/rwmem.cpp | 9 +- src/bitmap.cpp | 2 +- src/config.cpp | 2 +- src/config.h | 5 +- src/eventthread.h | 1 - src/filesystem.cpp | 17 ++-- src/global-ibo.h | 20 ++--- src/input.cpp | 53 ++++++------ src/quadarray.h | 14 +-- src/sharedstate.cpp | 2 +- src/tileatlas.cpp | 34 ++++---- src/tileatlas.h | 4 +- src/tilemap.cpp | 139 ++++++++++++++++-------------- 16 files changed, 188 insertions(+), 165 deletions(-) diff --git a/binding-mri/binding-mri.cpp b/binding-mri/binding-mri.cpp index 116c009..d44b168 100644 --- a/binding-mri/binding-mri.cpp +++ b/binding-mri/binding-mri.cpp @@ -224,14 +224,14 @@ static void runRMXPScripts() return; } - int scriptCount = RARRAY_LEN(scriptArray); + size_t scriptCount = RARRAY_LEN(scriptArray); QByteArray decodeBuffer; decodeBuffer.resize(0x1000); - QVector