Fix INDEXBITS in QHandleManager, QHandle
authorPaul Lemire <paul.lemire@kdab.com>
Wed, 9 Apr 2014 08:37:24 +0000 (10:37 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 9 Apr 2014 09:29:07 +0000 (11:29 +0200)
commitfa4ed60b6976a60a17078722784055bddbba7e1f
tree33ac265646a632140945293f0141c82fdb368dd6
parent516b6f27cf96378e34f6a0544608e03dbfd5fdcf
Fix INDEXBITS in QHandleManager, QHandle

QHandleManager worked only when INDEXBITS was set to the default value 16.
This is corrected now so that a QResourceManager<T, 4> created a
QHandleManager<T, 4> which provides QHandle<T, 4>

Follow up commits will follow for the refactoring of QResourcesManager into
subclasses that can implement their own dedicated memory allocation scheme.

Change-Id: If3b3fb43ae1c9473d9777cf9ba984ba37a65cfa9
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
src/core/resources/qhandle.h
src/core/resources/qhandlemanager.h
src/core/resources/qresourcesmanager.h
tests/auto/core/handle/tst_handle.cpp
tests/auto/core/resourcesmanager/tst_resourcesmanager.cpp