[vala] codegen: support virtual functions with vfunc_name but no invokers
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: support virtual functions with vfunc_name but no invokers
- Date: Wed, 1 Feb 2012 01:02:04 +0000 (UTC)
commit 5a899a6cc9428efe253ffc5eb6e0650a405fb84d
Author: Evan Nemerson <evan coeus-group com>
Date: Tue Jan 31 16:48:25 2012 -0800
codegen: support virtual functions with vfunc_name but no invokers
Partially fixes 668991.
codegen/valaccodememberaccessmodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodememberaccessmodule.vala b/codegen/valaccodememberaccessmodule.vala
index 860ffb4..1b9d0de 100644
--- a/codegen/valaccodememberaccessmodule.vala
+++ b/codegen/valaccodememberaccessmodule.vala
@@ -70,7 +70,7 @@ public abstract class Vala.CCodeMemberAccessModule : CCodeControlFlowModule {
var base_class = (Class) m.base_method.parent_symbol;
var vclass = new CCodeFunctionCall (new CCodeIdentifier ("%s_GET_CLASS".printf (get_ccode_upper_case_name (base_class))));
vclass.add_argument (pub_inst);
- set_cvalue (expr, new CCodeMemberAccess.pointer (vclass, m.name));
+ set_cvalue (expr, new CCodeMemberAccess.pointer (vclass, get_ccode_vfunc_name (m)));
} else {
set_cvalue (expr, new CCodeIdentifier (get_ccode_name (m.base_method)));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]