diff --git a/samples/grid/griddemo.cpp b/samples/grid/griddemo.cpp index 387fb57614..a58bc8d801 100644 --- a/samples/grid/griddemo.cpp +++ b/samples/grid/griddemo.cpp @@ -891,8 +891,9 @@ void GridFrame::OnShowSelection(wxCommandEvent& WXUNUSED(event)) single = _T("column"); } - const wxArrayInt sels(rows ? grid->GetSelectedRows() - : grid->GetSelectedCols()); + // NB: extra parentheses needed to avoid bcc 5.82 errors + const wxArrayInt sels((rows ? grid->GetSelectedRows() + : grid->GetSelectedCols())); size_t count = sels.size(); wxLogMessage(_T("%lu %s selected:"), (unsigned long)count, plural); diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index c3752751b5..da44fbb47f 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -10660,8 +10660,9 @@ wxCoord wxGrid::CalcColOrRowLabelAreaMinSize(bool column) for ( int rowOrCol = 0; rowOrCol < numRowsOrCols; rowOrCol++ ) { lines.Clear(); - StringToLines(calcRows ? GetRowLabelValue(rowOrCol) - : GetColLabelValue(rowOrCol), + // NB: extra parentheses needed to avoid bcc 5.82 compilation errors + StringToLines((calcRows ? GetRowLabelValue(rowOrCol) + : GetColLabelValue(rowOrCol)), lines); long w, h;