summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKrzesimir Nowak <krnowak@openismus.com>2012-09-25 14:09:58 +0200
committerJens Georg <jensg@openismus.com>2012-09-26 19:53:54 +0200
commit892e56c99b2095f00e3551e6ec28e46fd819b966 (patch)
treed3a0ea0a5921c861b7bcdb46c006a66b37e857df /src
parentca32e5415ee3a6eb6074a9dc3619170119a94f5c (diff)
downloadrygel-892e56c99b2095f00e3551e6ec28e46fd819b966.tar.gz
core: Fix some style issues in UserConfig
Diffstat (limited to 'src')
-rw-r--r--src/rygel/rygel-user-config.vala11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/rygel/rygel-user-config.vala b/src/rygel/rygel-user-config.vala
index bf025385..003714c7 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,