[vala/wip/bug769229: 3/6] Add [FormatArg] attribute to Parser.get_error
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/bug769229: 3/6] Add [FormatArg] attribute to Parser.get_error
- Date: Wed, 2 Nov 2016 19:56:50 +0000 (UTC)
commit e83b407323f5e6f689621bd7b89b4b03bed49722
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 b1a1693..25097a5 100644
--- a/vala/valagenieparser.vala
+++ b/vala/valagenieparser.vala
@@ -148,7 +148,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 48127eb..11e8bad 100644
--- a/vala/valaparser.vala
+++ b/vala/valaparser.vala
@@ -114,7 +114,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]