[Libreoffice-commits] .: sd/source
Christian Lohmaier
cloph at kemper.freedesktop.org
Sun Feb 13 08:49:38 PST 2011
sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 5b74fa0b382e4900cfeaf1e9a43c6b5e656f9e78
Author: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Date: Sun Feb 13 17:53:26 2011 +0100
WaE - signed/unsigned comparison
diff --git a/sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx b/sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx
index 10db80a..1597848 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)
More information about the Libreoffice-commits
mailing list