lib/gui/elistboxcontent.cpp: fix compiler warning
authorghost <andreas.monzner@multimedia-labs.de>
Mon, 12 Apr 2010 22:03:38 +0000 (00:03 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Mon, 12 Apr 2010 22:17:00 +0000 (00:17 +0200)
lib/gui/elistboxcontent.cpp

index 4b4b58c1bc2c458d7e6d08dfd7ce06cf32b313ab..a65df2e2360484c98fd3aa639f8cf4526462945d 100644 (file)
@@ -49,7 +49,8 @@ int iListboxContent::currentCursorSelectable()
 
 DEFINE_REF(eListboxPythonStringContent);
 
 
 DEFINE_REF(eListboxPythonStringContent);
 
-eListboxPythonStringContent::eListboxPythonStringContent(): m_itemheight(25), m_cursor(0)
+eListboxPythonStringContent::eListboxPythonStringContent()
+       :m_cursor(0), m_itemheight(25)
 {
 }
 
 {
 }
 
@@ -81,7 +82,7 @@ int eListboxPythonStringContent::cursorMove(int count)
 
 int eListboxPythonStringContent::cursorValid()
 {
 
 int eListboxPythonStringContent::cursorValid()
 {
-       return ((unsigned int)m_cursor) < size();
+       return m_cursor < size();
 }
 
 int eListboxPythonStringContent::cursorSet(int n)
 }
 
 int eListboxPythonStringContent::cursorSet(int n)