diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-22 11:43:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-25 15:27:58 +0200 |
commit | c47eb8afd1b941a4dca832cfad85ba750c76635d (patch) | |
tree | 283e513b21840c9e8c5b82f9b71a5fcd0f143b21 /UnoControls | |
parent | 27bde9a6abf6c73d5345b0a85b81afc8470d25cf (diff) |
dynamic column container: more efficient loops over all cols
Create an ScColumnsRange class that returns a pair of (start,end)
iterators to go through the list of currently allocated columns.
This is a fairly thing wrapper around the underlying std::vector,
so it should be fairly efficient (two pointers, and pointer increment
for iteration).
If this style of iteration is acceptable, I'll go through the rest
of the code that does:
for (SCCOL nCol=0; nCol<MAXCOLCOUNT; nCol++)
type stuff, and change it to use ScColumnsRange.
Change-Id: I81501c69b7f5566c6204dde0d87a6fe0deb9743c
Reviewed-on: https://gerrit.libreoffice.org/41413
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'UnoControls')
0 files changed, 0 insertions, 0 deletions