aboutsummaryrefslogtreecommitdiffstats
path: root/qmljs_engine.h
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@digia.com>2012-12-13 15:11:21 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-12-14 14:24:44 +0100
commitc09b940a64df421a05b3471af4218a4c320cf6e8 (patch)
treed3b7bf9319b980f44d3a756ef8b754ba64d59113 /qmljs_engine.h
parent9de4ccef6b14e908f9d3d967f45dca89858772c8 (diff)
Micro optimization of StringPool
In destructor we do not need to create a copy off all pointers. By hiding StringPool::strings in class private section we reduce risk of it being accidentally copied. Change-Id: I1b9df6bf9e49bd6926e84b8eac6b3d904277e50a Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qmljs_engine.h')
-rw-r--r--qmljs_engine.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmljs_engine.h b/qmljs_engine.h
index 94093cbbe8..dd856f62b7 100644
--- a/qmljs_engine.h
+++ b/qmljs_engine.h
@@ -154,7 +154,7 @@ struct ExecutionEngine
QVector<ExceptionHandler> unwindStack;
Value exception;
- QScopedPointer<struct StringPool> stringPool;
+ QScopedPointer<class StringPool> stringPool;
QVector<Function *> functions;
ExecutionEngine(MemoryManager *memoryManager, EvalISelFactory *iselFactory);