diff options
author | rbuj <[email protected]> | 2021-02-24 17:27:20 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-03-11 10:25:58 +0100 |
commit | b4533338ef5711c48e755c6a5c398811157ddbb9 (patch) | |
tree | 148aad7f027dbf3519850086395d97a0251e6c2a | |
parent | fb12e7ae5dc552cca3b58478571db2f79ff705ae (diff) | |
download | mate-system-monitor-b4533338ef5711c48e755c6a5c398811157ddbb9.tar.bz2 mate-system-monitor-b4533338ef5711c48e755c6a5c398811157ddbb9.tar.xz |
proctable: Function 'proctable_free_table' used prior to declaration
-rw-r--r-- | src/proctable.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/proctable.cpp b/src/proctable.cpp index faab2b0..2cb10c8 100644 --- a/src/proctable.cpp +++ b/src/proctable.cpp @@ -1125,6 +1125,16 @@ proctable_update (ProcData * const procdata) void +proctable_free_table (ProcData * const procdata) +{ + for (ProcInfo::Iterator it(ProcInfo::begin()); it != ProcInfo::end(); ++it) + delete it->second; + + ProcInfo::all.clear(); +} + + +void proctable_clear_tree (ProcData * const procdata) { GtkTreeModel *model; @@ -1139,17 +1149,6 @@ proctable_clear_tree (ProcData * const procdata) } -void -proctable_free_table (ProcData * const procdata) -{ - for (ProcInfo::Iterator it(ProcInfo::begin()); it != ProcInfo::end(); ++it) - delete it->second; - - ProcInfo::all.clear(); -} - - - char* make_loadavg_string(void) { |