[gnome-boxes] InstallerMedia.from_iso_info doesn't have nullable params



commit 68fd4c8d18d1c968837069ecf693bcb3a81d314e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Jul 10 22:04:12 2012 +0300

    InstallerMedia.from_iso_info doesn't have nullable params
    
    None of the parameters of InstallerMedia.from_iso_info() have to be
    nullable. Marking a non-nullable parameters as nullable could easily
    lead to issues later.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679657

 src/installer-media.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/installer-media.vala b/src/installer-media.vala
index a0823c9..fa848c5 100644
--- a/src/installer-media.vala
+++ b/src/installer-media.vala
@@ -14,11 +14,11 @@ private class Boxes.InstallerMedia : Object {
 
     public bool live { get { return os_media == null || os_media.live; } }
 
-    public InstallerMedia.from_iso_info (string            path,
-                                         string            label,
-                                         Os                os,
-                                         Media?            media,
-                                         Osinfo.Resources? resources) {
+    public InstallerMedia.from_iso_info (string           path,
+                                         string           label,
+                                         Os               os,
+                                         Media            media,
+                                         Osinfo.Resources resources) {
         this.device_file = path;
         this.os = os;
         this.os_media = media;



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