vala r1573 - in trunk: . vala
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1573 - in trunk: . vala
- Date: Thu, 12 Jun 2008 16:50:57 +0000 (UTC)
Author: juergbi
Date: Thu Jun 12 16:50:57 2008
New Revision: 1573
URL: http://svn.gnome.org/viewvc/vala?rev=1573&view=rev
Log:
2008-06-12 JÃrg Billeter <j bitron ch>
* vala/valaclass.vala:
Use `const' in C for immutable classes where appropriate
Modified:
trunk/ChangeLog
trunk/vala/valaclass.vala
Modified: trunk/vala/valaclass.vala
==============================================================================
--- trunk/vala/valaclass.vala (original)
+++ trunk/vala/valaclass.vala Thu Jun 12 16:50:57 2008
@@ -448,8 +448,12 @@
}
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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]