[vala/staging: 1/2] codegen: Don't write declaration of CreationMethod for compact-classes twice
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 1/2] codegen: Don't write declaration of CreationMethod for compact-classes twice
- Date: Fri, 11 Nov 2016 22:45:27 +0000 (UTC)
commit 3a008d0837f7cbe2f162787f0ccba7290b39cb48
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Nov 11 23:39:21 2016 +0100
codegen: Don't write declaration of CreationMethod for compact-classes twice
https://bugzilla.gnome.org/show_bug.cgi?id=772661
codegen/valaccodemethodmodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala
index 8e4c213..cee3ec1 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -188,7 +188,7 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule {
decl_space.add_function_declaration (function);
}
- if (m is CreationMethod && cl != null) {
+ if (is_gtypeinstance_creation_method (m)) {
// _construct function
function = new CCodeFunction (get_ccode_real_name (m));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]