Author: juergbi
Date: Mon Jan 28 19:04:17 2008
New Revision: 918
URL: http://svn.gnome.org/viewvc/vala?rev=918&view=rev
Log:
2008-01-28 Juerg Billeter <[EMAIL PROTECTED]>
* gobject/valaccodegenerator.vala: remove unnecessary if statement
Modified:
trunk/ChangeLog
trunk/gobject/valaccodegenerator.vala
Modified: trunk/gobject/valaccodegenerator.vala
==============================================================================
--- trunk/gobject/valaccodegenerator.vala (original)
+++ trunk/gobject/valaccodegenerator.vala Mon Jan 28 19:04:17 2008
@@ -685,21 +685,19 @@
source_type_member_declaration.append
(function.copy ());
}
}
-
- if (acc.body != null) {
- function.block = (CCodeBlock)
acc.body.ccodenode;
- function.block.prepend_statement
(create_property_type_check_statement (prop, acc.readable, t, true, "self"));
+ function.block = (CCodeBlock) acc.body.ccodenode;
- // notify on property changes
- if (prop.notify && (acc.writable ||
acc.construction)) {
- var notify_call = new CCodeFunctionCall
(new CCodeIdentifier ("g_object_notify"));
- notify_call.add_argument (new
CCodeCastExpression (new CCodeIdentifier ("self"), "GObject *"));
- notify_call.add_argument
(prop.get_canonical_cconstant ());
- function.block.add_statement (new
CCodeExpressionStatement (notify_call));
- }
+ function.block.prepend_statement
(create_property_type_check_statement (prop, acc.readable, t, true, "self"));
+
+ // notify on property changes
+ if (prop.notify && (acc.writable || acc.construction)) {
+ var notify_call = new CCodeFunctionCall (new
CCodeIdentifier ("g_object_notify"));
+ notify_call.add_argument (new
CCodeCastExpression (new CCodeIdentifier ("self"), "GObject *"));
+ notify_call.add_argument
(prop.get_canonical_cconstant ());
+ function.block.add_statement (new
CCodeExpressionStatement (notify_call));
}
-
+
source_type_member_definition.append (function);
}
}
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list
Want to limit the commits to a few modules? Go to above URL, log in to edit
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development
mailing list. Email [EMAIL PROTECTED] if interested.