[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 3d86a92 06/46: Use simpler wxGrid::AssignTabl
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 3d86a92 06/46: Use simpler wxGrid::AssignTable() |
Date: |
Wed, 22 Jul 2020 11:05:09 -0400 (EDT) |
branch: master
commit 3d86a92207b0b5a372f8c26b5409be6d34835a49
Author: Vadim Zeitlin <vadim@tt-solutions.com>
Commit: Vadim Zeitlin <vadim@tt-solutions.com>
Use simpler wxGrid::AssignTable()
No real changes, just use a newer and simpler to use function instead of
SetTable() with its awkward boolean argument.
This requires wxWidgets commit 15b5a1865cf599a524fc5ed8ff86210451ce798f
---
census_view.cpp | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/census_view.cpp b/census_view.cpp
index bf69eb4..a6cdf04 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -2100,11 +2100,7 @@ wxWindow* CensusGridView::CreateChildWindow()
// Grid must be already created when we create the table because we use
// the default cell background color to determine the alternating color.
grid_table_ = new(wx) CensusViewGridTable(*this);
- grid_window_->SetTable
- (grid_table_
- ,true // Take ownership of the table.
- ,wxGrid::wxGridSelectRows
- );
+ grid_window_->AssignTable(grid_table_, wxGrid::wxGridSelectRows);
grid_window_->UseNativeColHeader();
grid_window_->DisableHidingColumns();
- [lmi-commits] [lmi] master updated (6977670 -> 713d56f), Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 14ac975 03/46: Use at() instead of operator[] in non-performance-critical code, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 193e804 01/46: Refactor census view to enable several implementations, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master c094807 05/46: Remove unnecessary altColor_ member variable, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 3d86a92 06/46: Use simpler wxGrid::AssignTable(),
Greg Chicares <=
- [lmi-commits] [lmi] master c9e743f 08/46: Remove extra blank line from census_view.hpp, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master ba15191 11/46: Stop using wxRTTI in DatumSequenceEditorEvtHandler, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 5ee4b04 13/46: Improve comments in DatumSequenceEditorEvtHandler, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 03d33ab 14/46: Make DatumSequenceEditorEvtHandler::entry_ const, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 0e2a694 16/46: Replace DatumSequenceEditorEvtHandler with a lambda, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 3e9f8af 02/46: Add census_view variant with wxGrid, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 804111d 04/46: Remove unnecessary use of std::swap(), Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 25a989e 10/46: Make table_type_converter::get_all() map const, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master 12940dc 09/46: Define static map in more compact way, Greg Chicares, 2020/07/22
- [lmi-commits] [lmi] master e1fdb77 12/46: Use Bind() in DatumSequenceEditorEvtHandler, Greg Chicares, 2020/07/22