summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_q3memarray.cpp
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2011-03-30 12:27:00 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2011-04-04 11:22:56 (GMT)
commitc728783dc20cc2d4667affdefa19a4162a2ec9ef (patch)
tree0e61bdb7e464ba334e2879a6f210db0d4bd8489c /doc/src/snippets/code/doc_src_q3memarray.cpp
parent3d041873576e05bf19923f643878ac4d9ca33057 (diff)
downloadQt-c728783dc20cc2d4667affdefa19a4162a2ec9ef.zip
Qt-c728783dc20cc2d4667affdefa19a4162a2ec9ef.tar.gz
Qt-c728783dc20cc2d4667affdefa19a4162a2ec9ef.tar.bz2
QTemporaryFile: Locate placeholder before re-encoding
Previously, the placeholder was identified in unicode-based QString, and the offset was assumed to be correct after conversion to the local 8-bit encoding. This assumption is obviously wrong for variable-sized encoding, such as utf-8. With this change, the placeholder is still identified in the original QString, but conversion to 8-bit encoding is done in a step-wise fashion and offsets recomputed. This allows us to drop the intermediary argument verification in _gettemp. Task-number: QTBUG-4796 Reviewed-by: Robin Burchell
Diffstat (limited to 'doc/src/snippets/code/doc_src_q3memarray.cpp')
0 files changed, 0 insertions, 0 deletions