Make wxGridSelection to be non-friend to wxGrid
Improve integrity of the wxGridSelection internal data by removing `friend` declaration.
This commit is contained in:
committed by
Vadim Zeitlin
parent
79219fdbb2
commit
673ed29d7b
@@ -10044,7 +10044,7 @@ wxGridCellCoordsArray wxGrid::GetSelectedCells() const
|
||||
return a;
|
||||
}
|
||||
|
||||
return m_selection->m_cellSelection;
|
||||
return m_selection->GetCellSelection();
|
||||
}
|
||||
|
||||
wxGridCellCoordsArray wxGrid::GetSelectionBlockTopLeft() const
|
||||
@@ -10055,7 +10055,7 @@ wxGridCellCoordsArray wxGrid::GetSelectionBlockTopLeft() const
|
||||
return a;
|
||||
}
|
||||
|
||||
return m_selection->m_blockSelectionTopLeft;
|
||||
return m_selection->GetBlockSelectionTopLeft();
|
||||
}
|
||||
|
||||
wxGridCellCoordsArray wxGrid::GetSelectionBlockBottomRight() const
|
||||
@@ -10066,7 +10066,7 @@ wxGridCellCoordsArray wxGrid::GetSelectionBlockBottomRight() const
|
||||
return a;
|
||||
}
|
||||
|
||||
return m_selection->m_blockSelectionBottomRight;
|
||||
return m_selection->GetBlockSelectionBottomRight();
|
||||
}
|
||||
|
||||
wxArrayInt wxGrid::GetSelectedRows() const
|
||||
@@ -10077,7 +10077,7 @@ wxArrayInt wxGrid::GetSelectedRows() const
|
||||
return a;
|
||||
}
|
||||
|
||||
return m_selection->m_rowSelection;
|
||||
return m_selection->GetRowSelection();
|
||||
}
|
||||
|
||||
wxArrayInt wxGrid::GetSelectedCols() const
|
||||
@@ -10088,7 +10088,7 @@ wxArrayInt wxGrid::GetSelectedCols() const
|
||||
return a;
|
||||
}
|
||||
|
||||
return m_selection->m_colSelection;
|
||||
return m_selection->GetColSelection();
|
||||
}
|
||||
|
||||
void wxGrid::ClearSelection()
|
||||
|
Reference in New Issue
Block a user