Fix bug in property table
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 22 Jan 2013 13:53:46 +0000 (14:53 +0100)
committerLars Knoll <lars.knoll@digia.com>
Tue, 22 Jan 2013 14:04:45 +0000 (15:04 +0100)
commit2af92f495df4c6634022959f6b03b1cd208145d4
treeae74a23d99aaf7bf16b05d50f7708561a5a1be24
parentf9312114789d7e943e5ab6d855b947c06f06f2cb
Fix bug in property table

When inserting a new entry in the property table and we're reusing
an entry from the free-list, make sure to assign the name correctly
to ensure we calculate the correct bucket according to the _new_
name and not the name from the old re-used property.

Also removed unused isEmpty() method that doesn't return the
correct thing anyway (_propertyCount is never decreased).

Change-Id: Ifc4f2f6b1c5fe975e30bdc81386061d6215ad3e3
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
qv4propertytable.h
tests/TestExpectations