diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-05-19 11:02:31 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-05-19 16:55:29 +0200 |
commit | c761068f334185bdd95401ee0392dff0d72d764b (patch) | |
tree | 34434b3fbd56ddc35dc96c7028d39e4c1a395f53 /missing_bindings.py | |
parent | 62692a6f0df7ce14e0cb8808545ab80f04d417cf (diff) |
shiboken: Refactor generation of sequence access methods
Rename writeStdListWrapperMethods() to
writeDefaultSequenceMethods() since that is is more close to its
purpose. In the function, get the base container type.
Use std::advance instead of a loop to position the iterator.
This is specialized for random access iterators to perform an
addition and thus more efficient.
Use const_iterator in __getitem__ to prevent Qt containers from
detaching.
Task-number: PYSIDE-904
Change-Id: I4735f39193c4f4efa856440ecddbc48b3a5071ae
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'missing_bindings.py')
0 files changed, 0 insertions, 0 deletions