From 6eba86ae9d6c8550e069ef933889610aee309381 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 12 Oct 2018 08:57:55 +0200 Subject: clang-tidy misc-redundant-expression Change-Id: I708b0b486a233071f95592ccdb97f27fc35a23c4 Reviewed-on: https://gerrit.libreoffice.org/61783 Tested-by: Jenkins Reviewed-by: Noel Grandin --- starmath/source/utility.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'starmath') diff --git a/starmath/source/utility.cxx b/starmath/source/utility.cxx index c82b5ec6b7aa..e9cc71eda79f 100644 --- a/starmath/source/utility.cxx +++ b/starmath/source/utility.cxx @@ -178,7 +178,7 @@ bool IsItalic( const vcl::Font &rFont ) bool IsBold( const vcl::Font &rFont ) { FontWeight eWeight = rFont.GetWeight(); - return eWeight != WEIGHT_DONTKNOW && eWeight > WEIGHT_NORMAL; + return eWeight > WEIGHT_NORMAL; } -- cgit