summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-29 13:14:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-29 14:45:03 +0200
commit198546d0fae471a8a1808b337008faa8bfa457a7 (patch)
treedad172ebe0a56c0d400e80f2b06fb0081b23b754 /unotools
parent9b25614939f7709e3d67949f49c4beeec0cdc534 (diff)
loplugin:simplifybool in ucb..vcl
Change-Id: Ib63623f5ca3f6559e02a0013c3cbd6174f7aec14 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95108 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/misc/fontdefs.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/misc/fontdefs.cxx b/unotools/source/misc/fontdefs.cxx
index 3eb4d69bd3a7..3fd6c51ea6cd 100644
--- a/unotools/source/misc/fontdefs.cxx
+++ b/unotools/source/misc/fontdefs.cxx
@@ -402,7 +402,7 @@ OUString GetEnglishSearchFontName(const OUString& rInName)
}
}
// not lowercase Ascii
- else if ( !((c >= 'a') && (c <= 'z')) )
+ else if ( (c < 'a') || (c > 'z') )
{
// To Lowercase-Ascii
if ( (c >= 'A') && (c <= 'Z') )