Commit eb9247d0 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

Use `const' in C for immutable classes where appropriate

2008-06-12  Jürg Billeter  <j@bitron.ch>

	* vala/valaclass.vala:

	Use `const' in C for immutable classes where appropriate

svn path=/trunk/; revision=1573
parent 7ed8e535
2008-06-12 Jürg Billeter <j@bitron.ch>
* vala/valaclass.vala:
Use `const' in C for immutable classes where appropriate
2008-06-12 Jürg Billeter <j@bitron.ch>
* vala/valainterfacewriter.vala:
......
......@@ -448,8 +448,12 @@ public class Vala.Class : ObjectTypeSymbol {
}
public override string get_cname (bool const_type = false) {
if (const_type && const_cname != null) {
return const_cname;
if (const_type) {
if (const_cname != null) {
return const_cname;
} else if (is_immutable) {
return "const " + get_cname (false);
}
}
if (cname == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment