summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-18 00:50:57 +0100
committerinfirit <[email protected]>2014-12-18 00:50:57 +0100
commitde90d534cbba7c1a76b2435342ff73dc3da2ba25 (patch)
tree73b5be3bc32e834045d182bdc5e6961d198daa9f
parentf86effd09ca017840a7bd3dff946bceed980c2b0 (diff)
downloadmate-system-monitor-de90d534cbba7c1a76b2435342ff73dc3da2ba25.tar.bz2
mate-system-monitor-de90d534cbba7c1a76b2435342ff73dc3da2ba25.tar.xz
Removed unnecessary use of 'this->' for class members
Taken from GSM commit: 3708a48b131cb412b5021334ff57140972a1fcd0 From: Chris Kühl <[email protected]>
-rw-r--r--src/load-graph.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/load-graph.cpp b/src/load-graph.cpp
index d7884df..25e6a0a 100644
--- a/src/load-graph.cpp
+++ b/src/load-graph.cpp
@@ -31,11 +31,11 @@
void LoadGraph::clear_background()
{
- if (this->background) {
+ if (background) {
#if GTK_CHECK_VERSION(3,0,0)
- cairo_surface_destroy (this->background);
+ cairo_surface_destroy (background);
#else
- g_object_unref(this->background);
+ g_object_unref(background);
#endif
this->background = NULL;
}
@@ -47,7 +47,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>(this->draw_height / (fontsize + 14)))
{
case 0:
case 1:
@@ -593,10 +593,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();
}