[Libreoffice-commits] core.git: sc/source
Tor Lillqvist
tml at iki.fi
Thu Feb 14 23:03:33 PST 2013
sc/source/core/data/dptabres.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 19493b208b44a1a793f76dc5911cad280d5e8e03
Author: Tor Lillqvist <tml at iki.fi>
Date: Fri Feb 15 09:03:09 2013 +0200
WaE: comparison between signed and unsigned integer expressions
Change-Id: If7d4ad37038c82854cfea9cd830c801ae9274561
diff --git a/sc/source/core/data/dptabres.cxx b/sc/source/core/data/dptabres.cxx
index bb867aa..e539598 100644
--- a/sc/source/core/data/dptabres.cxx
+++ b/sc/source/core/data/dptabres.cxx
@@ -796,19 +796,19 @@ long ScDPResultData::GetRowStartMeasure() const
ScSubTotalFunc ScDPResultData::GetMeasureFunction(long nMeasure) const
{
- OSL_ENSURE(nMeasure < maMeasureFuncs.size(), "bumm");
+ OSL_ENSURE((size_t) nMeasure < maMeasureFuncs.size(), "bumm");
return maMeasureFuncs[nMeasure];
}
const sheet::DataPilotFieldReference& ScDPResultData::GetMeasureRefVal(long nMeasure) const
{
- OSL_ENSURE(nMeasure < maMeasureRefs.size(), "bumm");
+ OSL_ENSURE((size_t) nMeasure < maMeasureRefs.size(), "bumm");
return maMeasureRefs[nMeasure];
}
sal_uInt16 ScDPResultData::GetMeasureRefOrient(long nMeasure) const
{
- OSL_ENSURE(nMeasure < maMeasureRefOrients.size(), "bumm");
+ OSL_ENSURE((size_t) nMeasure < maMeasureRefOrients.size(), "bumm");
return maMeasureRefOrients[nMeasure];
}
@@ -829,7 +829,7 @@ rtl::OUString ScDPResultData::GetMeasureString(long nMeasure, bool bForce, ScSub
}
else
{
- OSL_ENSURE(nMeasure < maMeasureFuncs.size(), "bumm");
+ OSL_ENSURE((size_t) nMeasure < maMeasureFuncs.size(), "bumm");
const ScDPDimension* pDataDim = mrSource.GetDataDimension(nMeasure);
if (pDataDim)
{
More information about the Libreoffice-commits
mailing list