[Libreoffice-commits] core.git: sc/inc
Caolán McNamara
caolanm at redhat.com
Mon Jan 23 20:44:06 UTC 2017
sc/inc/address.hxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 21297dc60514396cf3ce268726939ea5fed36654
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Jan 18 21:26:47 2017 +0000
signs match, so don't need to cast
Change-Id: Ic1a3d4816430478c77ed56b4768524147bbce174
Reviewed-on: https://gerrit.libreoffice.org/33284
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx
index f3b82d1..7afbfa1 100644
--- a/sc/inc/address.hxx
+++ b/sc/inc/address.hxx
@@ -87,22 +87,22 @@ const SCROW SCROW_REPEAT_NONE = SCROW_MAX;
SAL_WARN_UNUSED_RESULT inline bool ValidCol( SCCOL nCol )
{
- return nCol >= static_cast<SCCOL>(0) && nCol <= MAXCOL;
+ return nCol >= 0 && nCol <= MAXCOL;
}
SAL_WARN_UNUSED_RESULT inline bool ValidRow( SCROW nRow )
{
- return nRow >= static_cast<SCROW>(0) && nRow <= MAXROW;
+ return nRow >= 0 && nRow <= MAXROW;
}
SAL_WARN_UNUSED_RESULT inline bool ValidTab( SCTAB nTab )
{
- return nTab >= static_cast<SCTAB>(0) && nTab <= MAXTAB;
+ return nTab >= 0 && nTab <= MAXTAB;
}
SAL_WARN_UNUSED_RESULT inline bool ValidTab( SCTAB nTab, SCTAB nMaxTab )
{
- return nTab >= static_cast<SCTAB>(0) && nTab <= nMaxTab;
+ return nTab >= 0 && nTab <= nMaxTab;
}
SAL_WARN_UNUSED_RESULT inline bool ValidColRow( SCCOL nCol, SCROW nRow )
More information about the Libreoffice-commits
mailing list