diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-05-19 17:13:39 (GMT) |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-05-19 17:13:39 (GMT) |
commit | eb4c00a469f473a33103652ed977eabb4fb9ce9b (patch) | |
tree | 9438444c90634da922aabb8dbd2e5673242c74aa /doc/src/snippets/code/src_xmlpatterns_api_qxmlserializer.cpp | |
parent | 40fc74c780be1069ed6e7f8cf7e4ac3c70d4c20c (diff) | |
download | Qt-eb4c00a469f473a33103652ed977eabb4fb9ce9b.zip Qt-eb4c00a469f473a33103652ed977eabb4fb9ce9b.tar.gz Qt-eb4c00a469f473a33103652ed977eabb4fb9ce9b.tar.bz2 |
Testing 'dictionary' if it contains a value before using operator[].
T & QMap::operator[]: "If the map contains no item with key key, the
function inserts a default-constructed value into the map with key key,
and returns a reference to it"
How many occurences of 'dictionary["foo"].startsWith("bar")' has that
file by the way?
Diffstat (limited to 'doc/src/snippets/code/src_xmlpatterns_api_qxmlserializer.cpp')
0 files changed, 0 insertions, 0 deletions