[rygel] core: Fix deprecated function calls
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Fix deprecated function calls
- Date: Sun, 30 Apr 2017 14:56:37 +0000 (UTC)
commit 3e0aea3decee4a22fae29b2163cc48865b8c9d71
Author: Jens Georg <mail jensge org>
Date: Sun Apr 30 11:44:55 2017 +0200
core: Fix deprecated function calls
src/librygel-core/rygel-plugin-loader.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/librygel-core/rygel-plugin-loader.vala b/src/librygel-core/rygel-plugin-loader.vala
index f61a7b3..7ffacb2 100644
--- a/src/librygel-core/rygel-plugin-loader.vala
+++ b/src/librygel-core/rygel-plugin-loader.vala
@@ -161,14 +161,14 @@ public class Rygel.PluginLoader : RecursiveModuleLoader {
try {
var enabled = this.config.get_enabled (section);
if (!enabled) {
- if (section in plugin_hash) {
+ if (plugin_hash.has_key(section)) {
plugin_hash[section].active = enabled;
}
} else {
- if (section in plugin_hash) {
+ if (plugin_hash.has_key(section)) {
plugin_hash[section].active = enabled;
} else {
- if (section in available_plugins) {
+ if (available_plugins.has_key(section)) {
this.load_module_from_info
(available_plugins[section]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]