[gnome-system-monitor] Removed unnecessary use of 'this->' for class members



commit 3708a48b131cb412b5021334ff57140972a1fcd0
Author: Chris KÃhl <chrisk openismus com>
Date:   Sun Jul 3 16:59:08 2011 +0200

    Removed unnecessary use of 'this->' for class members

 src/load-graph.cpp |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/load-graph.cpp b/src/load-graph.cpp
index dfe84a8..238bebf 100644
--- a/src/load-graph.cpp
+++ b/src/load-graph.cpp
@@ -31,9 +31,9 @@
 
 void LoadGraph::clear_background()
 {
-    if (this->background) {
-        cairo_surface_destroy (this->background);
-        this->background = NULL;
+    if (background) {
+        cairo_surface_destroy (background);
+        background = NULL;
     }
 }
 
@@ -43,7 +43,7 @@ unsigned LoadGraph::num_bars() const
     unsigned n;
 
     // keep 100 % num_bars == 0
-    switch (static_cast<int>(this->draw_height / (this->fontsize + 14)))
+    switch (static_cast<int>(draw_height / (fontsize + 14)))
     {
         case 0:
         case 1:
@@ -582,10 +582,10 @@ LoadGraph::~LoadGraph()
 {
     load_graph_stop(this);
 
-    if (this->timer_index)
-        g_source_remove(this->timer_index);
+    if (timer_index)
+        g_source_remove(timer_index);
 
-    this->clear_background();
+    clear_background();
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]