aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2013-06-22 14:39:52 -0400
committerWilliam Hua <william.hua@canonical.com>2013-06-22 14:39:52 -0400
commitf786b1fceca9f77e4a3a793b5398c7df4a3d70a8 (patch)
treee0a6a686b28ac617ffdf3af4bf866c62177bf4a1 /lib
parent3dd243d0e4bcf2fbcc263d47ce8f9dead6a070f6 (diff)
downloadayatana-indicator-keyboard-f786b1fceca9f77e4a3a793b5398c7df4a3d70a8.tar.gz
ayatana-indicator-keyboard-f786b1fceca9f77e4a3a793b5398c7df4a3d70a8.tar.bz2
ayatana-indicator-keyboard-f786b1fceca9f77e4a3a793b5398c7df4a3d70a8.zip
Don't initialize out variables.
Diffstat (limited to 'lib')
-rw-r--r--lib/main.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/main.vala b/lib/main.vala
index 30d186cc..1df714e1 100644
--- a/lib/main.vala
+++ b/lib/main.vala
@@ -249,7 +249,7 @@ public class Indicator.Keyboard.Service : Object {
[DBus (visible = false)]
private string? get_icon_string (uint index) {
string? icon_string = null;
- Variant? array = null;
+ Variant? array;
if (this.icon_strings == null) {
this.source_settings.get ("sources", "@a(ss)", out array);
@@ -333,7 +333,7 @@ public class Indicator.Keyboard.Service : Object {
uint icon_string_subscript = 0;
if (this.icon_string_subscripts == null) {
- Variant? array = null;
+ Variant? array;
this.source_settings.get ("sources", "@a(ss)", out array);
if (array != null) {
@@ -365,7 +365,7 @@ public class Indicator.Keyboard.Service : Object {
[DBus (visible = false)]
private Icon? get_icon (uint index) {
Icon? icon = null;
- Variant? array = null;
+ Variant? array;
if (this.icons == null) {
this.source_settings.get ("sources", "@a(ss)", out array);