[gnome-games] utils: Make Uri.from_uri_and_scheme() throw errors



commit b3dc5571b067ef556bb297395282d43c6ece5375
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun May 7 14:07:12 2017 +0200

    utils: Make Uri.from_uri_and_scheme() throw errors
    
    This avoids a compile time warning and potential runtime errors.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781334

 src/utils/uri.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/utils/uri.vala b/src/utils/uri.vala
index 9dac436..3ee20ce 100644
--- a/src/utils/uri.vala
+++ b/src/utils/uri.vala
@@ -9,7 +9,7 @@ public class Games.Uri {
                this.uri = uri;
        }
 
-       public Uri.from_uri_and_scheme (Uri uri, string scheme) {
+       public Uri.from_uri_and_scheme (Uri uri, string scheme) throws Error {
                this.uri = scheme_regex.replace (uri.uri, -1, 0, scheme + ":");
        }
 


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