vala r918 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r918 - in trunk: . gobject
- Date: Mon, 28 Jan 2008 19:04:17 +0000 (GMT)
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 <j bitron ch>
* 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]