[sysprof] visualizers: use cast macros
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] visualizers: use cast macros
- Date: Tue, 13 Dec 2016 00:15:24 +0000 (UTC)
commit 67a9d63597a93ce384526bf5cbe68ddc8f823cbd
Author: Christian Hergert <chergert redhat com>
Date: Mon Dec 12 16:12:33 2016 -0800
visualizers: use cast macros
We use these everywhere else, so be consistent with that.
lib/sp-visualizer-list.c | 4 ++--
lib/sp-visualizer-view.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/sp-visualizer-list.c b/lib/sp-visualizer-list.c
index 0ea799f..bb64fa1 100644
--- a/lib/sp-visualizer-list.c
+++ b/lib/sp-visualizer-list.c
@@ -79,7 +79,7 @@ sp_visualizer_list_get_property (GObject *object,
GValue *value,
GParamSpec *pspec)
{
- SpVisualizerList *self = (SpVisualizerList *)object;
+ SpVisualizerList *self = SP_VISUALIZER_LIST (object);
switch (prop_id)
{
@@ -102,7 +102,7 @@ sp_visualizer_list_set_property (GObject *object,
const GValue *value,
GParamSpec *pspec)
{
- SpVisualizerList *self = (SpVisualizerList *)object;
+ SpVisualizerList *self = SP_VISUALIZER_LIST (object);
switch (prop_id)
{
diff --git a/lib/sp-visualizer-view.c b/lib/sp-visualizer-view.c
index 4175fe6..d1e2cfe 100644
--- a/lib/sp-visualizer-view.c
+++ b/lib/sp-visualizer-view.c
@@ -431,7 +431,7 @@ sp_visualizer_view_get_property (GObject *object,
GValue *value,
GParamSpec *pspec)
{
- SpVisualizerView *self = (SpVisualizerView *)object;
+ SpVisualizerView *self = SP_VISUALIZER_VIEW (object);
switch (prop_id)
{
@@ -454,7 +454,7 @@ sp_visualizer_view_set_property (GObject *object,
const GValue *value,
GParamSpec *pspec)
{
- SpVisualizerView *self = (SpVisualizerView *)object;
+ SpVisualizerView *self = SP_VISUALIZER_VIEW (object);
switch (prop_id)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]