[rygel] core: Fix some style issues in UserConfig



commit 892e56c99b2095f00e3551e6ec28e46fd819b966
Author: Krzesimir Nowak <krnowak openismus com>
Date:   Tue Sep 25 14:09:58 2012 +0200

    core: Fix some style issues in UserConfig

 src/rygel/rygel-user-config.vala |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/rygel/rygel-user-config.vala b/src/rygel/rygel-user-config.vala
index bf02538..003714c 100644
--- a/src/rygel/rygel-user-config.vala
+++ b/src/rygel/rygel-user-config.vala
@@ -221,14 +221,13 @@ public class Rygel.UserConfig : GLib.Object, Configuration {
     }
 
     public static UserConfig get_default () throws Error {
-        if (config == null) {
-            var path = Path.build_filename
-                                        (Environment.get_user_config_dir (),
-                                         CONFIG_FILE);
-            config = new UserConfig (path);
+        if (UserConfig.config == null) {
+            var path = Path.build_filename (Environment.get_user_config_dir (),
+                                            CONFIG_FILE);
+            UserConfig.config = new UserConfig (path);
         }
 
-        return config;
+        return UserConfig.config;
     }
 
     private void initialize (string local_path,



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