From 08a6b673ff29156a315154a450d660af4c27ba65 Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Sun, 13 Feb 2011 17:53:26 +0100 Subject: WaE - signed/unsigned comparison --- sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sd/source/ui/toolpanel') diff --git a/sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx b/sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx index d178ffb06760..2096c7368457 100644 --- a/sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx +++ b/sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx @@ -467,7 +467,7 @@ MasterPagesSelector::UserData* MasterPagesSelector::GetUserData (int nIndex) con { const ::osl::MutexGuard aGuard (maMutex); - if (nIndex>0 && nIndex<=mpPageSet->GetItemCount()) + if (nIndex>0 && static_cast(nIndex)<=mpPageSet->GetItemCount()) return reinterpret_cast(mpPageSet->GetItemData((USHORT)nIndex)); else return NULL; @@ -480,7 +480,7 @@ void MasterPagesSelector::SetUserData (int nIndex, UserData* pData) { const ::osl::MutexGuard aGuard (maMutex); - if (nIndex>0 && nIndex<=mpPageSet->GetItemCount()) + if (nIndex>0 && static_cast(nIndex)<=mpPageSet->GetItemCount()) { UserData* pOldData = GetUserData(nIndex); if (pOldData!=NULL && pOldData!=pData) -- cgit