[vala] Fix virtual struct properties
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Fix virtual struct properties
- Date: Mon, 14 Sep 2009 19:15:06 +0000 (UTC)
commit 5d38a5c18efc95eba2b4e2f6f7146f991a7241bc
Author: Jürg Billeter <j bitron ch>
Date: Mon Sep 14 21:14:44 2009 +0200
Fix virtual struct properties
codegen/valaccodebasemodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index aa00179..4674539 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -1351,7 +1351,7 @@ internal class Vala.CCodeBaseModule : CCodeModule {
}
if (prop.is_abstract || prop.is_virtual) {
- if (acc.readable) {
+ if (acc.readable && !returns_real_struct) {
function = new CCodeFunction (acc.get_cname (), current_return_type.get_cname ());
} else {
function = new CCodeFunction (acc.get_cname (), "void");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]