[gnome-online-accounts] exchange, owncloud, telepathy: Style fixes



commit fa28cf6b474bb8ca802ddb3441cb468c62438d14
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon May 11 17:38:04 2015 +0200

    exchange, owncloud, telepathy: Style fixes
    
    Use the name 'self' to refer to the instance, and 'provider' if it is
    a GoaProvider virtual method.

 src/goabackend/goaexchangeprovider.c  |    8 ++++----
 src/goabackend/goaowncloudprovider.c  |    8 ++++----
 src/goabackend/goatelepathyprovider.c |    4 ++--
 3 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/goabackend/goaexchangeprovider.c b/src/goabackend/goaexchangeprovider.c
index 78191e3..c425be1 100644
--- a/src/goabackend/goaexchangeprovider.c
+++ b/src/goabackend/goaexchangeprovider.c
@@ -1,6 +1,6 @@
 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
 /*
- * Copyright (C) 2012, 2013, 2014 Red Hat, Inc.
+ * Copyright (C) 2012, 2013, 2014, 2015 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -74,13 +74,13 @@ get_provider_name (GoaProvider *provider, GoaObject *object)
 }
 
 static GoaProviderGroup
-get_provider_group (GoaProvider *_provider)
+get_provider_group (GoaProvider *provider)
 {
   return GOA_PROVIDER_GROUP_BRANDED;
 }
 
 static GoaProviderFeatures
-get_provider_features (GoaProvider *_provider)
+get_provider_features (GoaProvider *provider)
 {
   return GOA_PROVIDER_FEATURE_BRANDED |
          GOA_PROVIDER_FEATURE_MAIL |
@@ -954,7 +954,7 @@ show_account (GoaProvider         *provider,
 /* ---------------------------------------------------------------------------------------------------- */
 
 static void
-goa_exchange_provider_init (GoaExchangeProvider *provider)
+goa_exchange_provider_init (GoaExchangeProvider *self)
 {
 }
 
diff --git a/src/goabackend/goaowncloudprovider.c b/src/goabackend/goaowncloudprovider.c
index cb35927..ad9c89a 100644
--- a/src/goabackend/goaowncloudprovider.c
+++ b/src/goabackend/goaowncloudprovider.c
@@ -1,6 +1,6 @@
 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
 /*
- * Copyright (C) 2012, 2013, 2014 Red Hat, Inc.
+ * Copyright (C) 2012, 2013, 2014, 2015 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -68,13 +68,13 @@ get_provider_name (GoaProvider *provider, GoaObject *object)
 }
 
 static GoaProviderGroup
-get_provider_group (GoaProvider *_provider)
+get_provider_group (GoaProvider *provider)
 {
   return GOA_PROVIDER_GROUP_BRANDED;
 }
 
 static GoaProviderFeatures
-get_provider_features (GoaProvider *_provider)
+get_provider_features (GoaProvider *provider)
 {
   return GOA_PROVIDER_FEATURE_BRANDED |
          GOA_PROVIDER_FEATURE_CALENDAR |
@@ -1102,7 +1102,7 @@ show_account (GoaProvider         *provider,
 /* ---------------------------------------------------------------------------------------------------- */
 
 static void
-goa_owncloud_provider_init (GoaOwncloudProvider *provider)
+goa_owncloud_provider_init (GoaOwncloudProvider *self)
 {
 }
 
diff --git a/src/goabackend/goatelepathyprovider.c b/src/goabackend/goatelepathyprovider.c
index e1d6fd8..7c50455 100644
--- a/src/goabackend/goatelepathyprovider.c
+++ b/src/goabackend/goatelepathyprovider.c
@@ -982,9 +982,9 @@ goa_telepathy_provider_set_property (GObject *object,
 }
 
 static void
-goa_telepathy_provider_init (GoaTelepathyProvider *provider)
+goa_telepathy_provider_init (GoaTelepathyProvider *self)
 {
-  provider->priv = G_TYPE_INSTANCE_GET_PRIVATE (provider,
+  self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
         GOA_TYPE_TELEPATHY_PROVIDER, GoaTelepathyProviderPrivate);
 }
 


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