diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-04-30 23:48:40 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-04-30 23:48:40 +0000 |
commit | be58a2b8b1564934be6c0b5d2911835c7b573900 (patch) | |
tree | e406bd0c7bd9ab4e431f07cbb4f0adb3aafc0b04 /guilib/GUIWindow.h | |
parent | ed2780b3d92b65ebb56f2fe3a9d3e0960b834cf9 (diff) |
changed: Move HasID() back to the .h and make it const - issue is id is reserved under Obj-C
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29696 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIWindow.h')
-rw-r--r-- | guilib/GUIWindow.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guilib/GUIWindow.h b/guilib/GUIWindow.h index cab88c1203..1e6d2123e9 100644 --- a/guilib/GUIWindow.h +++ b/guilib/GUIWindow.h @@ -114,7 +114,7 @@ public: virtual bool OnMessage(CGUIMessage& message); bool ControlGroupHasFocus(int groupID, int controlID); - virtual bool HasID(int id); + virtual bool HasID(int controlID) const { return controlID >= m_controlID && controlID < m_controlID + m_idRange; }; void SetIDRange(int range) { m_idRange = range; }; int GetIDRange() const { return m_idRange; }; int GetPreviousWindow() { return m_previousWindow; }; |