WaE: comparison between signed and unsigned integer expressions

Change-Id: If7d4ad37038c82854cfea9cd830c801ae9274561
This commit is contained in:
Tor Lillqvist
2013-02-15 09:03:09 +02:00
parent f97dd7b4eb
commit 19493b208b

View File

@@ -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)
{