lmi-commits
[Top][All Lists]
Advanced

[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();



reply via email to

[Prev in Thread] Current Thread [Next in Thread]