diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-10-26 16:10:37 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2020-10-26 16:10:37 +0100 |
commit | 1d78426a2b172f0b0ba2f04d1f5c51ad75c82ef5 (patch) | |
tree | 7f82f8eed0a1590ecbb830d575ee0f092a2e433e /vala/valacreationmethod.vala | |
parent | 545121d1322d3f73880b3f14d86d3d7bd976e664 (diff) | |
download | vala-1d78426a2b172f0b0ba2f04d1f5c51ad75c82ef5.tar.gz |
vala: Make use of new printf-like API of Report.*()
Diffstat (limited to 'vala/valacreationmethod.vala')
-rw-r--r-- | vala/valacreationmethod.vala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vala/valacreationmethod.vala b/vala/valacreationmethod.vala index ed15bf46d..c5a98dc08 100644 --- a/vala/valacreationmethod.vala +++ b/vala/valacreationmethod.vala @@ -88,7 +88,7 @@ public class Vala.CreationMethod : Method { if (class_name != null && class_name != parent_symbol.name) { // class_name is null for constructors generated by GIdlParser - Report.error (source_reference, "missing return type in method `%s.%s´".printf (context.analyzer.current_symbol.get_full_name (), class_name)); + Report.error (source_reference, "missing return type in method `%s.%s´", context.analyzer.current_symbol.get_full_name (), class_name); error = true; return false; } @@ -124,7 +124,7 @@ public class Vala.CreationMethod : Method { // check whether error type is at least as accessible as the creation method if (!context.analyzer.is_type_accessible (this, error_type)) { error = true; - Report.error (source_reference, "error type `%s' is less accessible than creation method `%s'".printf (error_type.to_string (), get_full_name ())); + Report.error (source_reference, "error type `%s' is less accessible than creation method `%s'", error_type.to_string (), get_full_name ()); return false; } } @@ -184,7 +184,7 @@ public class Vala.CreationMethod : Method { if (is_abstract || is_virtual || overrides) { error = true; - Report.error (source_reference, "The creation method `%s' cannot be marked as override, virtual, or abstract".printf (get_full_name ())); + Report.error (source_reference, "The creation method `%s' cannot be marked as override, virtual, or abstract", get_full_name ()); return false; } @@ -202,7 +202,7 @@ public class Vala.CreationMethod : Method { } } if (!can_propagate_error && !((ErrorType) body_error_type).dynamic_error) { - Report.warning (body_error_type.source_reference, "unhandled error `%s'".printf (body_error_type.to_string())); + Report.warning (body_error_type.source_reference, "unhandled error `%s'", body_error_type.to_string()); } } } |