diff options
author | Pablo Barciela <[email protected]> | 2019-05-16 09:21:25 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-06-02 13:52:59 +0200 |
commit | e73caf3aa4ae3a1c192e26ef7f2b582d911e4c27 (patch) | |
tree | 64131779d1886b081e453e6638d2158433a97fd2 | |
parent | 382294de6517d0366075bc75ae636a402ba2678b (diff) | |
download | mate-system-monitor-e73caf3aa4ae3a1c192e26ef7f2b582d911e4c27.tar.bz2 mate-system-monitor-e73caf3aa4ae3a1c192e26ef7f2b582d911e4c27.tar.xz |
proctable: cppcheck: Local variable 'column' shadows outer variable
Fixes cppcheck warnings:
[src/proctable.cpp:521]: (style) The scope of the variable 'column' can be reduced.
[src/proctable.cpp:238] -> [src/proctable.cpp:505]: (style) Local variable column shadows outer variable
[src/proctable.cpp:238] -> [src/proctable.cpp:511]: (style) Local variable column shadows outer variable
[src/proctable.cpp:238] -> [src/proctable.cpp:521]: (style) Local variable column shadows outer variable
-rw-r--r-- | src/proctable.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/proctable.cpp b/src/proctable.cpp index 94bf63f..7b309da 100644 --- a/src/proctable.cpp +++ b/src/proctable.cpp @@ -502,14 +502,11 @@ proctable_new (ProcData * const procdata) /* Override column settings by hiding this column if it's meaningless: */ if (!can_show_security_context_column ()) { - GtkTreeViewColumn *column; column = my_gtk_tree_view_get_column_with_sort_column_id (GTK_TREE_VIEW (proctree), COL_SECURITYCONTEXT); gtk_tree_view_column_set_visible (column, FALSE); } if (!cgroups_enabled()) { - GtkTreeViewColumn *column; - column = my_gtk_tree_view_get_column_with_sort_column_id(GTK_TREE_VIEW(proctree), COL_CGROUP); gtk_tree_view_column_set_visible(column, FALSE); } @@ -518,8 +515,6 @@ proctable_new (ProcData * const procdata) if (!LOGIND_RUNNING()) #endif { - GtkTreeViewColumn *column; - for (i = COL_UNIT; i <= COL_OWNER; i++) { column = my_gtk_tree_view_get_column_with_sort_column_id(GTK_TREE_VIEW(proctree), i); gtk_tree_view_column_set_visible(column, FALSE); |