From 2687a5aca143c53c364cb44993ca601b8dd1c65e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 8 Sep 2017 13:43:16 +0200 Subject: -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 Reviewed-by: Noel Grandin --- svx/source/dialog/swframeposstrings.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') 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]); } -- cgit