Kaydet (Commit) 15648cb9 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:simplifybool

Change-Id: Ia83a01c8c134729b5ccf978e7cd46e8e694958a0
üst 4f41a9fc
......@@ -89,7 +89,7 @@ public:
// inline functions
inline NSView* getUserPane() {
if (m_bIsUserPaneLaidOut == false) {
if (!m_bIsUserPaneLaidOut) {
createUserPane();
}
return m_pUserPane;
......@@ -101,7 +101,7 @@ public:
inline void setFilterControlNeeded(bool bNeeded) {
m_bIsFilterControlNeeded = bNeeded;
if (bNeeded == true) {
if (bNeeded) {
m_bUserPaneNeeded = true;
}
}
......
......@@ -313,7 +313,7 @@ void ControlHelper::createUserPane()
{
DBG_PRINT_ENTRY(CLASS_NAME, __func__);
if (m_bUserPaneNeeded == false) {
if (!m_bUserPaneNeeded) {
SAL_INFO("fpicker.aqua","no user pane needed");
DBG_PRINT_EXIT(CLASS_NAME, __func__);
return;
......@@ -325,7 +325,7 @@ void ControlHelper::createUserPane()
return;
}
if (m_bIsFilterControlNeeded == true && m_pFilterControl == nil) {
if (m_bIsFilterControlNeeded && m_pFilterControl == nil) {
createFilterControl();
}
......@@ -478,7 +478,7 @@ void ControlHelper::createControls()
CResourceProvider aResProvider;
for (int i = 0; i < LIST_LAST; i++) {
if (true == m_bListVisibility[i]) {
if (m_bListVisibility[i]) {
m_bUserPaneNeeded = true;
int elementName = getControlElementName([NSPopUpButton class], i);
......@@ -504,7 +504,7 @@ void ControlHelper::createControls()
}
for (int i = 0/*#i102102*/; i < TOGGLE_LAST; i++) {
if (true == m_bToggleVisibility[i]) {
if (m_bToggleVisibility[i]) {
m_bUserPaneNeeded = true;
int elementName = getControlElementName([NSButton class], i);
......@@ -802,7 +802,7 @@ void ControlHelper::layoutControls()
return;
}
if (m_bIsUserPaneLaidOut == true) {
if (m_bIsUserPaneLaidOut) {
SAL_INFO("fpicker.aqua","user pane already laid out");
DBG_PRINT_EXIT(CLASS_NAME, __func__);
return;
......@@ -993,7 +993,7 @@ void ControlHelper::updateFilterUI()
{
DBG_PRINT_ENTRY(CLASS_NAME, __func__);
if (m_bIsFilterControlNeeded == false || m_pFilterHelper == NULL) {
if (!m_bIsFilterControlNeeded || m_pFilterHelper == NULL) {
SAL_INFO("fpicker.aqua","no filter control needed or no filter helper present");
DBG_PRINT_EXIT(CLASS_NAME, __func__);
return;
......
......@@ -261,7 +261,7 @@ void FilterHelper::SetCurFilter( const rtl::OUString& rFilter )
SolarMutexGuard aGuard;
if(m_aCurrentFilter.equals(rFilter) == false)
if(!m_aCurrentFilter.equals(rFilter))
{
m_aCurrentFilter = rFilter;
}
......
......@@ -755,7 +755,7 @@ void SalAquaFilePicker::updateSaveFileNameExtension() {
SolarMutexGuard aGuard;
if (m_pControlHelper->isAutoExtensionEnabled() == false) {
if (!m_pControlHelper->isAutoExtensionEnabled()) {
OSL_TRACE("allowing other file types");
[m_pDialog setAllowedFileTypes:nil];
[m_pDialog setAllowsOtherFileTypes:YES];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment