[vala/wip/ricotz: 1/2] vala: Pass through the format-literal



commit ea24ad62cde75a236e4106168f780f0ed79caf7c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Nov 7 18:56:04 2016 +0100

    vala: Pass through the format-literal
    
    https://bugzilla.gnome.org/show_bug.cgi?id=774060

 vala/valagenieparser.vala |    2 +-
 vala/valaparser.vala      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vala/valagenieparser.vala b/vala/valagenieparser.vala
index e7b6902..ce9a504 100644
--- a/vala/valagenieparser.vala
+++ b/vala/valagenieparser.vala
@@ -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);
diff --git a/vala/valaparser.vala b/vala/valaparser.vala
index ab3fa15..6f41fc9 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -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);


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