[vala/staging: 4/7] Add [FormatArg] attribute to Parser.get_error



commit 52588aacde8f15ea54abc6d3bc60ef22828a9a25
Author: Jürg Billeter <j bitron ch>
Date:   Tue Nov 1 18:01:20 2016 +0100

    Add [FormatArg] attribute to Parser.get_error

 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 46c6000..9f22f67 100644
--- a/vala/valagenieparser.vala
+++ b/vala/valagenieparser.vala
@@ -150,7 +150,7 @@ public class Vala.Genie.Parser : CodeVisitor {
                return false;
        }
 
-       string get_error (string msg) {
+       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 fc0abd1..06f5a68 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -116,7 +116,7 @@ public class Vala.Parser : CodeVisitor {
                return false;
        }
 
-       string get_error (string msg) {
+       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]