diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-02-19 02:55:37 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-02-19 02:55:37 +0000 |
commit | 5f22c573c7fbb7a45cf2aaee2e1ddad7bb7899cb (patch) | |
tree | 616c5e8b5f6bb5ee97f4e2ed92ab661d2f22e555 /guilib/GUIListContainer.cpp | |
parent | af22bc05ff517e85698c5618ad0b322706955ed8 (diff) |
cleanup: Move all members of CAction private, accessed via getters, as we only ever set in constructors.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@27962 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIListContainer.cpp')
-rw-r--r-- | guilib/GUIListContainer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guilib/GUIListContainer.cpp b/guilib/GUIListContainer.cpp index 4f4a7b1b94..7a9d9ddda8 100644 --- a/guilib/GUIListContainer.cpp +++ b/guilib/GUIListContainer.cpp @@ -37,7 +37,7 @@ CGUIListContainer::~CGUIListContainer(void) bool CGUIListContainer::OnAction(const CAction &action) { - switch (action.actionId) + switch (action.GetID()) { case ACTION_PAGE_UP: { @@ -68,7 +68,7 @@ bool CGUIListContainer::OnAction(const CAction &action) // smooth scrolling (for analog controls) case ACTION_SCROLL_UP: { - m_analogScrollCount += action.amount1 * action.amount1; + m_analogScrollCount += action.GetAmount() * action.GetAmount(); bool handled = false; while (m_analogScrollCount > 0.4) { @@ -88,7 +88,7 @@ bool CGUIListContainer::OnAction(const CAction &action) break; case ACTION_SCROLL_DOWN: { - m_analogScrollCount += action.amount1 * action.amount1; + m_analogScrollCount += action.GetAmount() * action.GetAmount(); bool handled = false; while (m_analogScrollCount > 0.4) { |