summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-04 16:29:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-07 14:16:58 +0000
commit9af88a70e93ff146c264c33dae60f54c926941f7 (patch)
tree894a59220e309526127e82266496d3746d2ccb8a /sc
parent612ebb3a545c4886d0123326abcdb951432dc4f2 (diff)
Revert "coverity#1242942 Use of untrusted scalar value"
This reverts commit 093b3d30f257a01122042eb4d116ee54fbdb7033. it didn't help one bit to get coverity to see the bounds check Change-Id: Ibf01c7dea2b220290511871c2a650051295d389d
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/table.hxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index 73c453ecfd54..1053ea70f296 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -1169,15 +1169,6 @@ private:
SCROW mnUBound;
};
- bool ValidCol(SCCOL nCol) const
- {
- return nCol >= 0 && static_cast<size_t>(nCol) < SAL_N_ELEMENTS(aCol);
- }
-
- bool ValidColRow(SCCOL nCol, SCROW nRow) const
- {
- return ValidCol(nCol) && ValidRow(nRow);
- }
};
#endif