[new compiler] Cleanup empty string handling
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 3 Feb 2014 12:30:06 +0000 (13:30 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 4 Feb 2014 17:28:25 +0000 (18:28 +0100)
commite5bd40742ab8d0b4ffc9307eb46bc41456fe394a
treec14979f7f451e90988714450607234059fa5d022
parent48144d3b29a1204bf1820d782228fbd9e25f318e
[new compiler] Cleanup empty string handling

Ensure that the empty string always has index 0, that simplifies the code in a
few places and makes it easier to check for the empty string in other places
where there's no access to the string pool itself.

Change-Id: Icd204aec478e8350ef3fee75d89bda1f88cffe26
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/compiler/qqmlcodegenerator.cpp
src/qml/compiler/qqmlcodegenerator_p.h
src/qml/compiler/qqmltypecompiler.cpp
src/qml/compiler/qv4compiler.cpp