diff options
| author | skidau <skidau@gmail.com> | 2015-03-30 12:20:20 +1100 |
|---|---|---|
| committer | skidau <skidau@gmail.com> | 2015-03-30 12:20:20 +1100 |
| commit | 5da3375bf15785f076ea08bd506434a5c103d054 (patch) | |
| tree | afee5f12bac97323b3f2f620081d2e4ccb70b347 /Source/Core/DolphinWX/Debugger/WatchView.cpp | |
| parent | 731e4a3a65245ebd5b41af90fd17d01867bf47b2 (diff) | |
| parent | 5ada887f94b5a571446c65bd4f1e9298dd8e2fea (diff) | |
Merge pull request #2245 from lioncash/tables
DolphinWX: Get rid of wxGrid-based casts in the debugger.
Diffstat (limited to 'Source/Core/DolphinWX/Debugger/WatchView.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Debugger/WatchView.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Debugger/WatchView.cpp b/Source/Core/DolphinWX/Debugger/WatchView.cpp index 8f88fb637b..d2349a94e3 100644 --- a/Source/Core/DolphinWX/Debugger/WatchView.cpp +++ b/Source/Core/DolphinWX/Debugger/WatchView.cpp @@ -215,7 +215,9 @@ wxGridCellAttr* CWatchTable::GetAttr(int row, int col, wxGridCellAttr::wxAttrKin CWatchView::CWatchView(wxWindow* parent, wxWindowID id) : wxGrid(parent, id) { - SetTable(new CWatchTable(), false); + m_watch_table = new CWatchTable(); + + SetTable(m_watch_table, true); SetRowLabelSize(0); SetColLabelSize(0); DisableDragRowSize(); @@ -229,7 +231,7 @@ void CWatchView::Update() if (PowerPC::GetState() != PowerPC::CPU_POWERDOWN) { ForceRefresh(); - ((CWatchTable *)GetTable())->UpdateWatch(); + m_watch_table->UpdateWatch(); } } |
