From caf6915365337deeb59b8c0bc340879fc1476cf5 Mon Sep 17 00:00:00 2001 From: janwas Date: Tue, 26 Apr 2005 20:28:36 +0000 Subject: [PATCH] stomped on size() -> int warnings This was SVN commit r2174. --- source/gui/CDropDown.cpp | 2 +- source/gui/scripting/JSInterface_IGUIObject.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/gui/CDropDown.cpp b/source/gui/CDropDown.cpp index 6753ea80e5..91a1389eed 100644 --- a/source/gui/CDropDown.cpp +++ b/source/gui/CDropDown.cpp @@ -103,7 +103,7 @@ void CDropDown::HandleMessage(const SGUIMessage &Message) CRect rect = GetListRect(); mouse.y += scroll; int set=-1; - for (int i=0; im_Items.size(); ++i) + for (int i=0; i<(int)pList->m_Items.size(); ++i) { if (mouse.y >= rect.top + m_ItemsYPositions[i] && mouse.y < rect.top + m_ItemsYPositions[i+1] && diff --git a/source/gui/scripting/JSInterface_IGUIObject.cpp b/source/gui/scripting/JSInterface_IGUIObject.cpp index 38324c5157..0a69d17ae0 100755 --- a/source/gui/scripting/JSInterface_IGUIObject.cpp +++ b/source/gui/scripting/JSInterface_IGUIObject.cpp @@ -248,13 +248,13 @@ JSBool JSI_IGUIObject::getProperty(JSContext* cx, JSObject* obj, jsval id, jsval GUI::GetSetting(e, propName, value); jsval *vector = new jsval[value.m_Items.size()]; - for (int i=0; i