From 22401181774dfb3882e7ad0335f1267d7885ff48 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 23 Apr 2015 18:30:45 +0200 Subject: Improved loplugin:literaltoboolconversion looking into cond. exprs. ...automatic rewriter fixes Change-Id: I6b04ca80f08f8a71ff94e309fd52f44d736751ee --- forms/source/component/navigationbar.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'forms/source/component') diff --git a/forms/source/component/navigationbar.cxx b/forms/source/component/navigationbar.cxx index acc4c37844dd..e5a712e43cd8 100644 --- a/forms/source/component/navigationbar.cxx +++ b/forms/source/component/navigationbar.cxx @@ -310,12 +310,12 @@ namespace frm // our boolean flags sal_Int32 nFlags = _rxInStream->readLong( ); - m_bEnabled = ( nFlags & PERSIST_ENABLED ) ? sal_True : sal_False; + m_bEnabled = ( nFlags & PERSIST_ENABLED ) ? true : false; m_nIconSize = ( nFlags & PERSIST_LARGEICONS ) ? 1 : 0; - m_bShowPosition = ( nFlags & PERSIST_SHOW_POSITION ) ? sal_True : sal_False; - m_bShowNavigation = ( nFlags & PERSIST_SHOW_NAVIGATION ) ? sal_True : sal_False; - m_bShowActions = ( nFlags & PERSIST_SHOW_ACTIONS ) ? sal_True : sal_False; - m_bShowFilterSort = ( nFlags & PERSIST_SHOW_FILTERSORT ) ? sal_True : sal_False; + m_bShowPosition = ( nFlags & PERSIST_SHOW_POSITION ) ? true : false; + m_bShowNavigation = ( nFlags & PERSIST_SHOW_NAVIGATION ) ? true : false; + m_bShowActions = ( nFlags & PERSIST_SHOW_ACTIONS ) ? true : false; + m_bShowFilterSort = ( nFlags & PERSIST_SHOW_FILTERSORT ) ? true : false; // our strings m_sHelpText = _rxInStream->readUTF( ); -- cgit