[msitools: 11/11] wixl: fix a few vala warnings
- From: Marc-André Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [msitools: 11/11] wixl: fix a few vala warnings
- Date: Mon, 20 Sep 2021 08:48:08 +0000 (UTC)
commit 1bbf3176ee95198b6de24cd2e18ded349ccc6826
Author: Marc-André Lureau <marcandre lureau redhat com>
Date: Mon Sep 20 12:45:41 2021 +0400
wixl: fix a few vala warnings
Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>
tools/wixl/builder.vala | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/tools/wixl/builder.vala b/tools/wixl/builder.vala
index f9dbc86..797e286 100644
--- a/tools/wixl/builder.vala
+++ b/tools/wixl/builder.vala
@@ -1595,8 +1595,8 @@ namespace Wixl {
load_extension_file(Extension.UI, dialog);
}
} else {
- control = (publish.parent as WixControl).Id;
- dialog = (publish.parent.parent as WixDialog).Id;
+ control = publish.parent.Id;
+ dialog = publish.parent.parent.Id;
}
if (publish.Property != null) {
@@ -1631,9 +1631,10 @@ namespace Wixl {
public override void visit_radio_button (WixRadioButton radio) throws GLib.Error {
string property;
int order;
+ WixRadioButtonGroup group = radio.parent as WixRadioButtonGroup;
- property = (radio.parent as WixRadioButtonGroup).Property;
- order = (radio.parent as WixRadioButtonGroup).order++;
+ property = group.Property;
+ order = group.order++;
db.table_radio_button.add (property, order, radio.Value,
int.parse (radio.X), int.parse (radio.Y),
@@ -1645,8 +1646,8 @@ namespace Wixl {
string control;
string dialog;
- dialog = (subscribe.parent.parent as WixDialog).Id;
- control = (subscribe.parent as WixControl).Id;
+ dialog = subscribe.parent.parent.Id;
+ control = subscribe.parent.Id;
db.table_event_mapping.add (dialog, control,
subscribe.Event, subscribe.Attribute);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]