[dconf] Don't compare VariantType by pointer value
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] Don't compare VariantType by pointer value
- Date: Tue, 10 May 2011 10:18:36 +0000 (UTC)
commit 03066011b7fe3a58d451d93a134022b0607ff1dc
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]