summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_xmlpatterns_api_qxmlserializer.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-05-19 17:13:39 (GMT)
committerAlessandro Portale <aportale@trolltech.com>2009-05-19 17:13:39 (GMT)
commiteb4c00a469f473a33103652ed977eabb4fb9ce9b (patch)
tree9438444c90634da922aabb8dbd2e5673242c74aa /doc/src/snippets/code/src_xmlpatterns_api_qxmlserializer.cpp
parent40fc74c780be1069ed6e7f8cf7e4ac3c70d4c20c (diff)
downloadQt-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