From bbecebd4ba2ecbe6cb37fca184ef7174438b4530 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Thu, 27 Aug 2015 19:17:49 +0200 Subject: [PATCH] Use Boolean expression instead of conditional statement to get Boolean value. --- include/wx/propgrid/property.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/wx/propgrid/property.h b/include/wx/propgrid/property.h index fb302adb6a..2da6019650 100644 --- a/include/wx/propgrid/property.h +++ b/include/wx/propgrid/property.h @@ -2451,9 +2451,7 @@ protected: bool HasCell( unsigned int column ) const { - if ( m_cells.size() > column ) - return true; - return false; + return m_cells.size() > column; } void InitAfterAdded( wxPropertyGridPageState* pageState,