diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2014-05-15 12:54:54 +0300 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-16 21:42:45 +0200 |
commit | 4689a9b3f065db2364ac52e7d867f12363f16b5d (patch) | |
tree | d48943d6bf27af4150bb97c18ad9bce5563fb81f /src/corelib/tools/qiterator.qdoc | |
parent | 7952cf7e2705bd310ad8e8d0eca85a372e669fb3 (diff) |
Minor optimization for QTextLineItemIterator
Don't store unused values (pos_x and levels) and re-use
already calculated ones (itemStart, itemEnd, and itemLength).
Also const-ify some members to make the code a bit more clear.
Change-Id: Ied80ebf9e4e7e8a1d057e413a9bd24f84b8aaf92
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/corelib/tools/qiterator.qdoc')
0 files changed, 0 insertions, 0 deletions