diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-23 23:10:25 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-24 13:15:56 +0100 |
commit | 1dcc7efc6f60084c80c4d7b0a5caf42c23f3be99 (patch) | |
tree | 9a1bb42709b22f7fde21abc6608bc6b67c5cc7a0 /sw | |
parent | a09958dd35bf29b99714e05c758ff0c71ca75870 (diff) |
Remove presumably dead < USHRT_MAX checks
...which are probably obsolete since 93cb1f8bb13e25586f61ba108e959376d90e91ed
"INTEGRATION: CWS swwarnings" changed the parameters of lcl_CreateXCell from
sal_Int16 to sal_Int32 (even though the < vs. <= and unsigned USHRT_MAX vs.
signed sal_Int16 inconsistencies are suspicious).
Change-Id: I14511cb7df1aa92630bf03d89d54609e7a440256
Reviewed-on: https://gerrit.libreoffice.org/48469
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index db6e6e6bbd76..34d9e8766039 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -2218,7 +2218,7 @@ uno::Reference<table::XCell> SwXTextTable::getCellByPosition(sal_Int32 nColumn, SolarMutexGuard aGuard; SwFrameFormat* pFormat(GetFrameFormat()); // sheet is unimportant - if(nColumn >= 0 && nRow >= 0 && nColumn < USHRT_MAX && nRow < USHRT_MAX && pFormat) + if(nColumn >= 0 && nRow >= 0 && pFormat) { auto pXCell = lcl_CreateXCell(pFormat, nColumn, nRow); if(pXCell) |