diff options
author | Juerg Billeter <j@bitron.ch> | 2008-04-14 19:07:37 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-04-14 19:07:37 +0000 |
commit | 89179ce042596bc60ec569a65cb9295324ff22a5 (patch) | |
tree | 56e4bda0beaa2d869adf40eef93e4b407742d7fe /vala/valatypesymbol.vala | |
parent | 94979a22270adeab75d2bfdb74902591d7385450 (diff) | |
download | vala-89179ce042596bc60ec569a65cb9295324ff22a5.tar.gz |
report warning when using null literal as return expression of method
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: report warning when using null
literal as return expression of method returning non-null value
* */*.vala: fix warnings
svn path=/trunk/; revision=1228
Diffstat (limited to 'vala/valatypesymbol.vala')
-rw-r--r-- | vala/valatypesymbol.vala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vala/valatypesymbol.vala b/vala/valatypesymbol.vala index a7d3055bb..f1f342ec3 100644 --- a/vala/valatypesymbol.vala +++ b/vala/valatypesymbol.vala @@ -141,7 +141,7 @@ public abstract class Vala.Typesymbol : Symbol { * @return the name of the GType name in C code or null if this data * type is not registered with GType */ - public virtual string get_type_id () { + public virtual string? get_type_id () { return null; } @@ -150,21 +150,21 @@ public abstract class Vala.Typesymbol : Symbol { * * @return type name for marshallers */ - public virtual string get_marshaller_type_name () { + public virtual string? get_marshaller_type_name () { return null; } /** * Returns the cname of the GValue getter function, */ - public virtual string get_get_value_function () { + public virtual string? get_get_value_function () { return null; } /** * Returns the cname of the GValue setter function, */ - public virtual string get_set_value_function () { + public virtual string? get_set_value_function () { return null; } @@ -177,7 +177,7 @@ public abstract class Vala.Typesymbol : Symbol { * name or null * @return the upper case name to be used in C code */ - public virtual string get_upper_case_cname (string? infix = null) { + public virtual string? get_upper_case_cname (string? infix = null) { return null; } @@ -187,7 +187,7 @@ public abstract class Vala.Typesymbol : Symbol { * * @return the name of the default value */ - public virtual string get_default_value () { + public virtual string? get_default_value () { return null; } |