[dconf/dconf-0.8: 2/4] Don't compare VariantType by pointer value



commit 319c8359de2b1e1815dc4f3b3e6d166552a21f9f
Author: Ryan Lortie <desrt desrt ca>
Date:   Tue May 10 12:15:53 2011 +0200

    Don't compare VariantType by pointer value

 client/dconf-client.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/client/dconf-client.vala b/client/dconf-client.vala
index 810348e..d84f0c8 100644
--- a/client/dconf-client.vala
+++ b/client/dconf-client.vala
@@ -27,7 +27,7 @@ namespace DConf {
 			foreach (var message in dcem.parameters) {
 				var reply = connection.call_sync (dcem.bus_name, dcem.object_path, dcem.interface_name, dcem.method_name,
 				                                  message, dcem.reply_type, DBusCallFlags.NONE, -1, cancellable);
-				if (dcem.reply_type != VariantType.UNIT) {
+				if (!dcem.reply_type.equal (VariantType.UNIT)) {
 					reply.get ("(s)", out tag);
 				}
 			}



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