summaryrefslogtreecommitdiff
path: root/vala/valagenieparser.vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2016-11-01 18:14:09 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2016-11-03 20:47:31 +0100
commit300f81c2517d875b5e1331d893d42f3901e4563e (patch)
treeea328e0bd5697e66c8d4aa25b4c32baf747f6ed2 /vala/valagenieparser.vala
parente274ebbe1a9dbb03e330c8a03472c8e9ca12e545 (diff)
downloadvala-300f81c2517d875b5e1331d893d42f3901e4563e.tar.gz
Do not use non-literal printf format strings
Diffstat (limited to 'vala/valagenieparser.vala')
-rw-r--r--vala/valagenieparser.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/vala/valagenieparser.vala b/vala/valagenieparser.vala
index 25097a521..e7b6902b5 100644
--- a/vala/valagenieparser.vala
+++ b/vala/valagenieparser.vala
@@ -163,7 +163,7 @@ public class Vala.Genie.Parser : CodeVisitor {
TokenType cur = current ();
TokenType pre = tokens[index - 1].type;
- throw new ParseError.SYNTAX (get_error ("expected %s but got %s with previous %s".printf (type.to_string (), cur.to_string (), pre.to_string())));
+ throw new ParseError.SYNTAX (get_error ("expected %s but got %s with previous %s"), type.to_string (), cur.to_string (), pre.to_string());
}
inline bool expect_terminator () throws ParseError {
@@ -173,7 +173,7 @@ public class Vala.Genie.Parser : CodeVisitor {
TokenType cur = current ();
- throw new ParseError.SYNTAX (get_error ("expected line end or semicolon but got %s".printf (cur.to_string())));
+ throw new ParseError.SYNTAX (get_error ("expected line end or semicolon but got %s"), cur.to_string());
}
inline SourceLocation get_location () {
@@ -2436,7 +2436,7 @@ public class Vala.Genie.Parser : CodeVisitor {
TokenType cur = current ();
TokenType pre = tokens[index-1].type;
- throw new ParseError.SYNTAX (get_error ("expected declaration but got %s with previous %s".printf (cur.to_string (), pre.to_string())));
+ throw new ParseError.SYNTAX (get_error ("expected declaration but got %s with previous %s"), cur.to_string (), pre.to_string());
}
void parse_declarations (Symbol parent, bool root = false) throws ParseError {