QTranslator: Use resource memory instead of copying it
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>
Mon, 29 Oct 2012 16:14:07 +0000 (17:14 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 2 Nov 2012 17:07:35 +0000 (18:07 +0100)
commit92d75077d686fcad26b5ad02a40c3987fb1fc82b
treef3d29d5543464fb78ea2ffe7657a2f7622219de3
parent28f36ebcc246c90f82355bb0a40b3cca07913fae
QTranslator: Use resource memory instead of copying it

Previously, translations in resource files were loaded through
QFile and the data was copied. Now, simply use the resource memory
in-place.

Change-Id: I55a06c1e7bb15c169cc69b908b3021136beac9d2
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
src/corelib/kernel/qtranslator.cpp