[Libreoffice-commits] core.git: vcl/inc

Noel Grandin noel at peralex.com
Fri Jan 15 04:51:35 PST 2016


 vcl/inc/fontattributes.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 804094be2514d099f6bb2be63d1536bebf6f06bc
Author: Noel Grandin <noel at peralex.com>
Date:   Fri Jan 15 14:50:46 2016 +0200

    loplugin:simplifybool
    
    Change-Id: Ida569b2158ad1126409b568c6ee7b2d911738bfa

diff --git a/vcl/inc/fontattributes.hxx b/vcl/inc/fontattributes.hxx
index 5ab9b4f..17eddc6 100644
--- a/vcl/inc/fontattributes.hxx
+++ b/vcl/inc/fontattributes.hxx
@@ -136,7 +136,7 @@ inline void FontAttributes::SetSymbolFlag( const bool bSymbolFlag )
 inline void FontAttributes::SetCharSet( const rtl_TextEncoding aEncoding )
 {
     meCharSet = aEncoding;
-    mbSymbolFlag = ( meCharSet == RTL_TEXTENCODING_SYMBOL ? true : false );
+    mbSymbolFlag = meCharSet == RTL_TEXTENCODING_SYMBOL;
 }
 
 #endif // INCLUDED_VCL_INC_FONTATTRIBUTES_HXX


More information about the Libreoffice-commits mailing list