vala r2059 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2059 - in trunk: . gobject
- Date: Sat, 22 Nov 2008 09:05:53 +0000 (UTC)
Author: juergbi
Date: Sat Nov 22 09:05:53 2008
New Revision: 2059
URL: http://svn.gnome.org/viewvc/vala?rev=2059&view=rev
Log:
2008-11-22 JÃrg Billeter <j bitron ch>
* gobject/valaccodemethodmodule.vala:
Whitespace fixes
Modified:
trunk/ChangeLog
trunk/gobject/valaccodemethodmodule.vala
Modified: trunk/gobject/valaccodemethodmodule.vala
==============================================================================
--- trunk/gobject/valaccodemethodmodule.vala (original)
+++ trunk/gobject/valaccodemethodmodule.vala Sat Nov 22 09:05:53 2008
@@ -37,22 +37,22 @@
}
public override string? get_custom_creturn_type (Method m) {
- var attr = m.get_attribute ("CCode");
- if (attr != null) {
- string type = attr.get_string ("type");
- if (type != null) {
- return type;
- }
- }
- return null;
- }
-
- string get_creturn_type (Method m, string default_value) {
- string type = get_custom_creturn_type (m);
- if (type == null) {
- return default_value;
- }
- return type;
+ var attr = m.get_attribute ("CCode");
+ if (attr != null) {
+ string type = attr.get_string ("type");
+ if (type != null) {
+ return type;
+ }
+ }
+ return null;
+ }
+
+ string get_creturn_type (Method m, string default_value) {
+ string type = get_custom_creturn_type (m);
+ if (type == null) {
+ return default_value;
+ }
+ return type;
}
public override void visit_method (Method m) {
@@ -889,10 +889,10 @@
}
if (current_type_symbol is Class) {
- CCodeExpression cresult = new CCodeIdentifier ("self");
- if (get_custom_creturn_type (m) != null) {
- cresult = new CCodeCastExpression (cresult, get_custom_creturn_type (m));
- }
+ CCodeExpression cresult = new CCodeIdentifier ("self");
+ if (get_custom_creturn_type (m) != null) {
+ cresult = new CCodeCastExpression (cresult, get_custom_creturn_type (m));
+ }
var creturn = new CCodeReturnStatement ();
creturn.return_expression = cresult;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]