mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
C++: use the const version of begin and end from SharedVector::clear
This commit is contained in:
parent
d9637816bb
commit
c15a59892a
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ struct SharedVector
|
||||||
if (inner->refcount != 1) {
|
if (inner->refcount != 1) {
|
||||||
*this = SharedVector();
|
*this = SharedVector();
|
||||||
} else {
|
} else {
|
||||||
auto b = begin(), e = end();
|
auto b = cbegin(), e = cend();
|
||||||
inner->size = 0;
|
inner->size = 0;
|
||||||
for (auto it = b; it < e; ++it) {
|
for (auto it = b; it < e; ++it) {
|
||||||
it->~T();
|
it->~T();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue