diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-08 13:43:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-08 15:53:29 +0200 |
commit | 2687a5aca143c53c364cb44993ca601b8dd1c65e (patch) | |
tree | d12bb4b5529fdd62ff86b07258a307681ce41b86 /svx | |
parent | 030273e2e28ef9c4d2118ca3851c64498dfe000a (diff) |
-Werror,-Wtautological-compare with latest clang
Change-Id: I073f1893b759f8d31a24187f542b031b86dc4b8a
error: comparison of unsigned enum expression >= 0 is always true
[-Werror,-Wtautological-compare]
Reviewed-on: https://gerrit.libreoffice.org/42103
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/swframeposstrings.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/dialog/swframeposstrings.cxx b/svx/source/dialog/swframeposstrings.cxx index 6dd9ae33d05b..d2e9c8e05ab0 100644 --- a/svx/source/dialog/swframeposstrings.cxx +++ b/svx/source/dialog/swframeposstrings.cxx @@ -28,7 +28,7 @@ OUString SvxSwFramePosString::GetString(StringId eId) { assert(SAL_N_ELEMENTS(RID_SVXSW_FRAMEPOSITIONS) == SvxSwFramePosString::STR_MAX); DBG_ASSERT(eId >= 0 && eId < STR_MAX, "invalid StringId"); - if(!(eId >= 0 && eId < STR_MAX)) + if(!(eId < STR_MAX)) eId = LEFT; return SvxResId(RID_SVXSW_FRAMEPOSITIONS[eId]); } |