summaryrefslogtreecommitdiff
path: root/vala/valaarraycreationexpression.vala
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2020-10-26 16:10:37 +0100
committerRico Tzschichholz <ricotz@ubuntu.com>2020-10-26 16:10:37 +0100
commit1d78426a2b172f0b0ba2f04d1f5c51ad75c82ef5 (patch)
tree7f82f8eed0a1590ecbb830d575ee0f092a2e433e /vala/valaarraycreationexpression.vala
parent545121d1322d3f73880b3f14d86d3d7bd976e664 (diff)
downloadvala-1d78426a2b172f0b0ba2f04d1f5c51ad75c82ef5.tar.gz
vala: Make use of new printf-like API of Report.*()
Diffstat (limited to 'vala/valaarraycreationexpression.vala')
-rw-r--r--vala/valaarraycreationexpression.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/vala/valaarraycreationexpression.vala b/vala/valaarraycreationexpression.vala
index 8af8fa8fe..fdc2eef8d 100644
--- a/vala/valaarraycreationexpression.vala
+++ b/vala/valaarraycreationexpression.vala
@@ -216,7 +216,7 @@ public class Vala.ArrayCreationExpression : Expression {
}
if (subsize >= 0 && subsize != size) {
il.error = true;
- Report.error (il.source_reference, "Expected initializer list of size %d, got size %d".printf (subsize, size));
+ Report.error (il.source_reference, "Expected initializer list of size %d, got size %d", subsize, size);
return -1;
} else {
subsize = size;
@@ -280,7 +280,7 @@ public class Vala.ArrayCreationExpression : Expression {
error = true;
var actual_type = new ArrayType (element_type, calc_sizes.size, source_reference);
((ArrayType) actual_type).length_type = length_type;
- Report.error (initlist.source_reference, "Expected initializer for `%s' but got `%s'".printf (target_type.to_string (), actual_type.to_string ()));
+ Report.error (initlist.source_reference, "Expected initializer for `%s' but got `%s'", target_type.to_string (), actual_type.to_string ());
}
}