Cache results of GUIObject::isConditionTrue()

Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: Ia50f7c365b2dc0a65ee046bb42972e3594264878
This commit is contained in:
Vojtech Bocek
2014-02-08 02:05:33 +01:00
parent bfb6334ca8
commit 072205626c
11 changed files with 65 additions and 44 deletions
+3 -1
View File
@@ -591,8 +591,10 @@ int GUIInput::NotifyTouch(TOUCH_STATE state, int x, int y)
return 0;
}
int GUIInput::NotifyVarChange(std::string varName, std::string value)
int GUIInput::NotifyVarChange(const std::string& varName, const std::string& value)
{
GUIObject::NotifyVarChange(varName, value);
if (varName == mVariable && !isLocalChange) {
HandleTextLocation(-1003);
return 0;