diff options
Diffstat (limited to 'src/qml/jsruntime/qv4util_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4util_p.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4util_p.h b/src/qml/jsruntime/qv4util_p.h index 132abd211e..59c12c5e46 100644 --- a/src/qml/jsruntime/qv4util_p.h +++ b/src/qml/jsruntime/qv4util_p.h @@ -102,6 +102,9 @@ public: void resize(int newSize) { bits.resize(newSize); } + void resize(int newSize, bool newValue) + { bits.resize(newSize, newValue); } + void assign(int newSize, bool value) { bits.assign(newSize, value); } @@ -159,6 +162,13 @@ public: void resize(int newSize) { bits.resize(newSize); } + void resize(int newSize, bool newValue) + { + int oldSize = bits.size(); + bits.resize(newSize); + bits.fill(newValue, oldSize, bits.size()); + } + void assign(int newSize, bool value) { bits.resize(newSize); |