[gnome-boxes] More descriptive identifiers
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] More descriptive identifiers
- Date: Mon, 24 Oct 2011 21:43:08 +0000 (UTC)
commit 5a271f14951d800f1624701b1268b532d80d2510
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Oct 25 00:40:48 2011 +0300
More descriptive identifiers
src/machine.vala | 8 ++++----
src/util.vala | 8 ++++----
src/wizard.vala | 4 ++--
3 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/machine.vala b/src/machine.vala
index 01aca05..04af477 100644
--- a/src/machine.vala
+++ b/src/machine.vala
@@ -237,8 +237,8 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
});
try {
domain.resume ();
- } catch (GLib.Error e) {
- warning (e.message);
+ } catch (GLib.Error error) {
+ warning (error.message);
}
} else if (state != DomainState.RUNNING) {
started_id = domain.started.connect (() => {
@@ -248,8 +248,8 @@ private class Boxes.LibvirtMachine: Boxes.Machine {
});
try {
domain.start (0);
- } catch (GLib.Error e) {
- warning (e.message);
+ } catch (GLib.Error error) {
+ warning (error.message);
}
}
}
diff --git a/src/util.vala b/src/util.vala
index abd8c5b..5ebc9e6 100644
--- a/src/util.vala
+++ b/src/util.vala
@@ -154,12 +154,12 @@ namespace Boxes {
else
file.delete ();
- var dos = new DataOutputStream (file.create (FileCreateFlags.REPLACE_DESTINATION));
- dos.put_string (key_file.to_data (null));
+ var stream = new DataOutputStream (file.create (FileCreateFlags.REPLACE_DESTINATION));
+ stream.put_string (key_file.to_data (null));
return true;
- } catch (GLib.Error e) {
- warning (e.message);
+ } catch (GLib.Error error) {
+ warning (error.message);
return false;
}
}
diff --git a/src/wizard.vala b/src/wizard.vala
index 9378520..49eef8e 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -183,8 +183,8 @@ private class Boxes.Wizard: Boxes.UI {
if (value == WizardPage.REVIEW) {
try {
prepare ();
- } catch (Boxes.Error e) {
- warning ("Fixme: %s".printf (e.message));
+ } catch (Boxes.Error error) {
+ warning ("Fixme: %s".printf (error.message));
return;
}
} else if (value == WizardPage.LAST) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]