summaryrefslogtreecommitdiff
path: root/sd/source/ui/toolpanel
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2011-02-13 17:53:26 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2011-02-13 17:53:26 +0100
commit08a6b673ff29156a315154a450d660af4c27ba65 (patch)
tree2e09c331436c7addfbda189a67b7a7d07fd43076 /sd/source/ui/toolpanel
parentbcf226cbe434992e0b1570719f9e86380a6c7d49 (diff)
WaE - signed/unsigned comparison
Diffstat (limited to 'sd/source/ui/toolpanel')
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx4
1 files changed, 2 insertions, 2 deletions
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<unsigned int>(nIndex)<=mpPageSet->GetItemCount())
return reinterpret_cast<UserData*>(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<unsigned int>(nIndex)<=mpPageSet->GetItemCount())
{
UserData* pOldData = GetUserData(nIndex);
if (pOldData!=NULL && pOldData!=pData)