]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Replace `%s` with `%s' in format strings of output messages
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 8 Aug 2018 07:54:02 +0000 (09:54 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 8 Aug 2018 07:54:02 +0000 (09:54 +0200)
codegen/valaccodeattribute.vala
vala/valaclass.vala
vala/valafield.vala
vala/valagenieparser.vala
vala/valainterface.vala
vala/valamethod.vala
vala/valaparameter.vala
vala/valaparser.vala
vala/valaproperty.vala
vala/valareturnstatement.vala
vala/valastruct.vala

index fc22c3e72305bc052881ec097897e0d2193b38a3..b6f60498c554a340ad1d58a9818edcfad4ad6a6e 100644 (file)
@@ -1021,7 +1021,7 @@ public class Vala.CCodeAttribute : AttributeCache {
                                        }
                                }
                                if (st.is_simple_type ()) {
-                                       Report.error (st.source_reference, "The type `%s` doesn't declare a marshaller type name".printf (st.get_full_name ()));
+                                       Report.error (st.source_reference, "The type `%s' doesn't declare a marshaller type name".printf (st.get_full_name ()));
                                } else if (get_ccode_has_type_id (st)) {
                                        return "BOXED";
                                } else {
@@ -1107,7 +1107,7 @@ public class Vala.CCodeAttribute : AttributeCache {
                                }
                        }
                        if (st.is_simple_type ()) {
-                               Report.error (st.source_reference, "The type `%s` doesn't declare a GValue get function".printf (st.get_full_name ()));
+                               Report.error (st.source_reference, "The type `%s' doesn't declare a GValue get function".printf (st.get_full_name ()));
                        } else if (get_ccode_has_type_id (st)) {
                                return "g_value_get_boxed";
                        } else {
@@ -1165,7 +1165,7 @@ public class Vala.CCodeAttribute : AttributeCache {
                                }
                        }
                        if (st.is_simple_type ()) {
-                               Report.error (st.source_reference, "The type `%s` doesn't declare a GValue set function".printf (st.get_full_name ()));
+                               Report.error (st.source_reference, "The type `%s' doesn't declare a GValue set function".printf (st.get_full_name ()));
                        } else if (get_ccode_has_type_id (st)) {
                                return "g_value_set_boxed";
                        } else {
@@ -1223,7 +1223,7 @@ public class Vala.CCodeAttribute : AttributeCache {
                                }
                        }
                        if (st.is_simple_type ()) {
-                               Report.error (st.source_reference, "The type `%s` doesn't declare a GValue take function".printf (st.get_full_name ()));
+                               Report.error (st.source_reference, "The type `%s' doesn't declare a GValue take function".printf (st.get_full_name ()));
                        } else if (get_ccode_has_type_id (st)) {
                                return "g_value_take_boxed";
                        } else {
index 0a44e9789cec045608ee742e6370013f38ab7b1c..2167e4e4b67765f7519c7613ded76fefe9155e36 100644 (file)
@@ -463,14 +463,14 @@ public class Vala.Class : ObjectTypeSymbol {
 
                        if (!(base_type_reference is ObjectType)) {
                                error = true;
-                               Report.error (source_reference, "base type `%s` of class `%s` is not an object type".printf (base_type_reference.to_string (), get_full_name ()));
+                               Report.error (source_reference, "base type `%s' of class `%s' is not an object type".printf (base_type_reference.to_string (), get_full_name ()));
                                return false;
                        }
 
                        // check whether base type is at least as accessible as the class
                        if (!context.analyzer.is_type_accessible (this, base_type_reference)) {
                                error = true;
-                               Report.error (source_reference, "base type `%s` is less accessible than class `%s`".printf (base_type_reference.to_string (), get_full_name ()));
+                               Report.error (source_reference, "base type `%s' is less accessible than class `%s'".printf (base_type_reference.to_string (), get_full_name ()));
                                return false;
                        }
 
@@ -566,7 +566,7 @@ public class Vala.Class : ObjectTypeSymbol {
                        foreach (DataType base_type in get_base_types ()) {
                                if (base_type.data_type is Interface) {
                                        error = true;
-                                       Report.error (source_reference, "compact classes `%s` may not implement interfaces".printf (get_full_name ()));
+                                       Report.error (source_reference, "compact classes `%s' may not implement interfaces".printf (get_full_name ()));
                                }
                        }
 
index 0227e8a8aab5ffa6d3222b64c9259696004c599c..f02b09092a7cdb9628e4afb3b7f4b0eb6ec35ba3 100644 (file)
@@ -103,7 +103,7 @@ public class Vala.Field : Variable, Lockable {
                // check whether field type is at least as accessible as the field
                if (!context.analyzer.is_type_accessible (this, variable_type)) {
                        error = true;
-                       Report.error (source_reference, "field type `%s` is less accessible than field `%s`".printf (variable_type.to_string (), get_full_name ()));
+                       Report.error (source_reference, "field type `%s' is less accessible than field `%s'".printf (variable_type.to_string (), get_full_name ()));
                        return false;
                }
 
index 57f041a5e4f1b8cca194db43396f19c6c320c35d..24c63849251cbd3b47de77a06ce5c77b48aed026 100644 (file)
@@ -2402,7 +2402,7 @@ public class Vala.Genie.Parser : CodeVisitor {
                if (attributes != null) {
                        foreach (Attribute attr in (List<Attribute>) attributes) {
                                if (node.get_attribute (attr.name) != null) {
-                                       Report.error (attr.source_reference, "duplicate attribute `%s`".printf (attr.name));
+                                       Report.error (attr.source_reference, "duplicate attribute `%s'".printf (attr.name));
                                }
                                node.attributes.append (attr);
                        }
index 39242d3582bd5beb39b1802b824b85004c215653..1fda7951264f8b231a8cb43373ccbe8bea74cb29 100644 (file)
@@ -206,7 +206,7 @@ public class Vala.Interface : ObjectTypeSymbol {
                        // check whether prerequisite is at least as accessible as the interface
                        if (!context.analyzer.is_type_accessible (this, prerequisite_reference)) {
                                error = true;
-                               Report.error (source_reference, "prerequisite `%s` is less accessible than interface `%s`".printf (prerequisite_reference.to_string (), get_full_name ()));
+                               Report.error (source_reference, "prerequisite `%s' is less accessible than interface `%s'".printf (prerequisite_reference.to_string (), get_full_name ()));
                                return false;
                        }
                }
@@ -223,7 +223,7 @@ public class Vala.Interface : ObjectTypeSymbol {
 
                        if (!(class_or_interface is ObjectTypeSymbol)) {
                                error = true;
-                               Report.error (source_reference, "Prerequisite `%s` of interface `%s` is not a class or interface".printf (get_full_name (), class_or_interface.to_string ()));
+                               Report.error (source_reference, "Prerequisite `%s' of interface `%s' is not a class or interface".printf (get_full_name (), class_or_interface.to_string ()));
                                return false;
                        }
 
index e6d9fb59099aaaaf546659a0ed5562d5e50a88e8..1db46ae456193271619b16ea934c002b128a7cfc 100644 (file)
@@ -752,7 +752,7 @@ public class Vala.Method : Subroutine, Callable {
                        // check whether error type is at least as accessible as the method
                        if (!context.analyzer.is_type_accessible (this, error_type)) {
                                error = true;
-                               Report.error (source_reference, "error type `%s` is less accessible than method `%s`".printf (error_type.to_string (), get_full_name ()));
+                               Report.error (source_reference, "error type `%s' is less accessible than method `%s'".printf (error_type.to_string (), get_full_name ()));
                                return false;
                        }
                }
@@ -815,7 +815,7 @@ public class Vala.Method : Subroutine, Callable {
                // check whether return type is at least as accessible as the method
                if (!context.analyzer.is_type_accessible (this, return_type)) {
                        error = true;
-                       Report.error (source_reference, "return type `%s` is less accessible than method `%s`".printf (return_type.to_string (), get_full_name ()));
+                       Report.error (source_reference, "return type `%s' is less accessible than method `%s'".printf (return_type.to_string (), get_full_name ()));
                        return false;
                }
 
index bfc340bc55aa66f0688d28bf994bbbfa4b225fb7..7c13a7c194922be56eab5877a2149e6e69483d9e 100644 (file)
@@ -173,7 +173,7 @@ public class Vala.Parameter : Variable {
                        if (initializer is NullLiteral
                            && !variable_type.nullable
                            && direction != ParameterDirection.OUT) {
-                               Report.warning (source_reference, "`null' incompatible with parameter type `%s`".printf (variable_type.to_string ()));
+                               Report.warning (source_reference, "`null' incompatible with parameter type `%s'".printf (variable_type.to_string ()));
                        } else if (!(initializer is NullLiteral) && direction == ParameterDirection.OUT) {
                                Report.error (source_reference, "only `null' is allowed as default value for out parameters");
                        } else if (direction == ParameterDirection.IN && !initializer.value_type.compatible (variable_type)) {
@@ -189,7 +189,7 @@ public class Vala.Parameter : Variable {
                        // check whether parameter type is at least as accessible as the method
                        if (!context.analyzer.is_type_accessible (this, variable_type)) {
                                error = true;
-                               Report.error (source_reference, "parameter type `%s` is less accessible than method `%s`".printf (variable_type.to_string (), parent_symbol.get_full_name ()));
+                               Report.error (source_reference, "parameter type `%s' is less accessible than method `%s'".printf (variable_type.to_string (), parent_symbol.get_full_name ()));
                        }
                }
 
index e5accb12881c1af637722d232090ff575cce6a26..c4d8a5313b4af87063d81c814bc950c0f1b33f78 100644 (file)
@@ -2220,7 +2220,7 @@ public class Vala.Parser : CodeVisitor {
                if (attributes != null) {
                        foreach (Attribute attr in (List<Attribute>) attributes) {
                                if (node.get_attribute (attr.name) != null) {
-                                       Report.error (attr.source_reference, "duplicate attribute `%s`".printf (attr.name));
+                                       Report.error (attr.source_reference, "duplicate attribute `%s'".printf (attr.name));
                                }
                                node.attributes.append (attr);
                        }
index aa899f636143a702f9cf7d8f52aa3882a6cbe76a..c873f29d39621ce361ed4af1f2f3994eda1c881a 100644 (file)
@@ -492,7 +492,7 @@ public class Vala.Property : Symbol, Lockable {
                // check whether property type is at least as accessible as the property
                if (!context.analyzer.is_type_accessible (this, property_type)) {
                        error = true;
-                       Report.error (source_reference, "property type `%s` is less accessible than property `%s`".printf (property_type.to_string (), get_full_name ()));
+                       Report.error (source_reference, "property type `%s' is less accessible than property `%s'".printf (property_type.to_string (), get_full_name ()));
                }
 
                if (overrides && base_property == null) {
index 2cb1e6dd5d6afb7eea8f2948c33caab51cd850dc..83e81a2cc9cd46e726b713c9a58df0663c6bc985 100644 (file)
@@ -135,7 +135,7 @@ public class Vala.ReturnStatement : CodeNode, Statement {
 
                if (return_expression is NullLiteral
                    && !context.analyzer.current_return_type.nullable) {
-                       Report.warning (source_reference, "`null' incompatible with return type `%s`".printf (context.analyzer.current_return_type.to_string ()));
+                       Report.warning (source_reference, "`null' incompatible with return type `%s'".printf (context.analyzer.current_return_type.to_string ()));
                }
 
                add_error_types (return_expression.get_error_types ());
index 1c4ba768cfd15af14dc02aa9933930f66325d8c0..4100b4b73ab9c42ebee74c2462e75198137266d8 100644 (file)
@@ -494,7 +494,7 @@ public class Vala.Struct : TypeSymbol {
 
                        if (!(base_type is ValueType)) {
                                error = true;
-                               Report.error (source_reference, "The base type `%s` of struct `%s` is not a struct".printf (base_type.to_string (), get_full_name ()));
+                               Report.error (source_reference, "The base type `%s' of struct `%s' is not a struct".printf (base_type.to_string (), get_full_name ()));
                                return false;
                        }
                }