aboutsummaryrefslogtreecommitdiff
path: root/guilib
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2010-03-25 01:47:49 +0000
committerjmarshallnz <jmarshallnz@svn>2010-03-25 01:47:49 +0000
commit4c60cde8e90155bc71d564adbad820f4f438133d (patch)
tree3cdb9862bf3ee8e87edab0534e34b64ed5258b77 /guilib
parent7917bc7658f5fcf725d0569d767eba88686e6e8b (diff)
changed: made CGUIBaseContainer::InsideLayout const
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@28794 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib')
-rw-r--r--guilib/GUIBaseContainer.cpp2
-rw-r--r--guilib/GUIBaseContainer.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/guilib/GUIBaseContainer.cpp b/guilib/GUIBaseContainer.cpp
index a69c01e454..87d87113fc 100644
--- a/guilib/GUIBaseContainer.cpp
+++ b/guilib/GUIBaseContainer.cpp
@@ -928,7 +928,7 @@ void CGUIBaseContainer::FreeMemory(int keepStart, int keepEnd)
}
}
-bool CGUIBaseContainer::InsideLayout(const CGUIListItemLayout *layout, const CPoint &point)
+bool CGUIBaseContainer::InsideLayout(const CGUIListItemLayout *layout, const CPoint &point) const
{
if (!layout) return false;
if ((m_orientation == VERTICAL && layout->Size(HORIZONTAL) && point.x > layout->Size(HORIZONTAL)) ||
diff --git a/guilib/GUIBaseContainer.h b/guilib/GUIBaseContainer.h
index d4e76c8fa3..ab6cf2626b 100644
--- a/guilib/GUIBaseContainer.h
+++ b/guilib/GUIBaseContainer.h
@@ -112,7 +112,7 @@ protected:
virtual void Reset();
virtual unsigned int GetNumItems() const { return m_items.size(); };
virtual int GetCurrentPage() const;
- bool InsideLayout(const CGUIListItemLayout *layout, const CPoint &point);
+ bool InsideLayout(const CGUIListItemLayout *layout, const CPoint &point) const;
inline float Size() const;
void MoveToRow(int row);