]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Pass through the format-literal
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 7 Nov 2016 17:56:04 +0000 (18:56 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 7 Nov 2016 17:56:04 +0000 (18:56 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=774060

vala/valagenieparser.vala
vala/valaparser.vala

index e7b6902b5023379e689a9c4e32dfa6606cda2a4f..ce9a5047ad2e355c6edf9268ccc8c55e59c82e25 100644 (file)
@@ -148,7 +148,7 @@ public class Vala.Genie.Parser : CodeVisitor {
                return false;
        }
 
-       string get_error ([FormatArg] string msg) {
+       unowned string get_error ([FormatArg] string msg) {
                var begin = get_location ();
                next ();
                Report.error (get_src (begin), "syntax error, " + msg);
index ab3fa15c59c446bd7e7f98948d8c4a96b9cf7f30..6f41fc92d8f6eba37318b3a5e3588370a3f322f3 100644 (file)
@@ -114,7 +114,7 @@ public class Vala.Parser : CodeVisitor {
                return false;
        }
 
-       string get_error ([FormatArg] string msg) {
+       unowned string get_error ([FormatArg] string msg) {
                var begin = get_location ();
                next ();
                Report.error (get_src (begin), "syntax error, " + msg);