From e70be8f82bc65840777d9a60be1f94cdb9525dee Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 3 Jul 2021 15:52:04 +0100 Subject: [PATCH] Fix indentation in wxGrid mouse processing code Indent "break" statements correctly and remove unnecessary braces. No real changes. This commit is best viewed ignoring whitespace-only changes. --- src/generic/grid.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index a487162a5e..dff8accf66 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -3828,13 +3828,10 @@ void wxGrid::ProcessRowLabelMouseEvent( wxMouseEvent& event, wxGridRowLabelWindo switch ( m_cursorMode ) { case WXGRID_CURSOR_RESIZE_ROW: - { DoGridDragResize(event.GetPosition(), wxGridRowOperations(), gridWindow); - } - break; + break; case WXGRID_CURSOR_SELECT_ROW: - { if ( !m_selection || m_numRows == 0 || m_numCols == 0 ) break; @@ -3851,8 +3848,7 @@ void wxGrid::ProcessRowLabelMouseEvent( wxMouseEvent& event, wxGridRowLabelWindo event, wxEVT_GRID_RANGE_SELECTING); } - } - break; + break; // default label to suppress warnings about "enumeration value // 'xxx' not handled in switch @@ -4172,10 +4168,9 @@ void wxGrid::ProcessColLabelMouseEvent( wxMouseEvent& event, wxGridColLabelWindo { case WXGRID_CURSOR_RESIZE_COL: DoGridDragResize(event.GetPosition(), wxGridColumnOperations(), gridWindow); - break; + break; case WXGRID_CURSOR_SELECT_COL: - { if ( col != -1 ) { if ( !m_selection || m_numRows == 0 || m_numCols == 0 ) @@ -4193,8 +4188,7 @@ void wxGrid::ProcessColLabelMouseEvent( wxMouseEvent& event, wxGridColLabelWindo event, wxEVT_GRID_RANGE_SELECTING); } - } - break; + break; case WXGRID_CURSOR_MOVE_COL: {