[gnome-control-center/gbsneto/object-cache-cleanup: 1/4] object-cache: Declare singleton instance as static
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gbsneto/object-cache-cleanup: 1/4] object-cache: Declare singleton instance as static
- Date: Wed, 26 Sep 2018 00:03:01 +0000 (UTC)
commit 7f5b5d6060fbbf659c4c5a0e6b05981b36b2cc01
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Sep 25 20:45:12 2018 -0300
object-cache: Declare singleton instance as static
Otherwise, it is visible for other compile units. This
is a theoretical problem though, there's nothing wrong
happening right now.
shell/cc-object-storage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/shell/cc-object-storage.c b/shell/cc-object-storage.c
index 3e3ab4d9a..7aeafb1fd 100644
--- a/shell/cc-object-storage.c
+++ b/shell/cc-object-storage.c
@@ -30,7 +30,7 @@ struct _CcObjectStorage
G_DEFINE_TYPE (CcObjectStorage, cc_object_storage, G_TYPE_OBJECT)
/* Singleton instance */
-CcObjectStorage *_instance = NULL;
+static CcObjectStorage *_instance = NULL;
/* GTask API to create a new D-Bus proxy */
typedef struct
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]