aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compiler_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compiler/qv4compiler_p.h')
-rw-r--r--src/qml/compiler/qv4compiler_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4compiler_p.h b/src/qml/compiler/qv4compiler_p.h
index 756e7cfd52..e04f13aaf3 100644
--- a/src/qml/compiler/qv4compiler_p.h
+++ b/src/qml/compiler/qv4compiler_p.h
@@ -66,7 +66,8 @@ struct Q_QML_EXPORT StringTableGenerator {
int getStringId(const QString &string) const;
QString stringForIndex(int index) const { return strings.at(index); }
uint stringCount() const { return strings.size(); }
- uint dataSize() const { return stringDataSize; }
+
+ uint sizeOfTableAndData() const { return stringDataSize + strings.count() * sizeof(uint); }
void clear();