diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-05-31 17:47:52 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-06-01 13:07:59 (GMT) |
commit | dab3121d59b202eac72a0b7d0fa101532ac080cd (patch) | |
tree | b5b0d033d7eabd708d215b0a0cb555e9cd489b82 /doc/src/snippets/code/src_gui_image_qicon.cpp | |
parent | 0081d328394dea7ddcf7411ece678973a86781c9 (diff) | |
download | Qt-dab3121d59b202eac72a0b7d0fa101532ac080cd.zip Qt-dab3121d59b202eac72a0b7d0fa101532ac080cd.tar.gz Qt-dab3121d59b202eac72a0b7d0fa101532ac080cd.tar.bz2 |
fix setRawData()
setRawData() itself (consistently with fromRawData()) sets alloc to the
passed raw size, so the check at the start would always find that we
cannot re-use the qstring object, thus completely defeating the purpose
of the function.
so also check that the string data pointer actually points into the
internal array before giving up.
Reviewed-by: olivier
Diffstat (limited to 'doc/src/snippets/code/src_gui_image_qicon.cpp')
0 files changed, 0 insertions, 0 deletions