[vala/0.36: 49/212] codegen: Actually write declaration for GNodeTraverseFunc wrapper



commit 1443460291758f75503661286228988c3cbdb60c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Aug 26 21:50:08 2017 +0200

    codegen: Actually write declaration for GNodeTraverseFunc wrapper
    
    This fixes a very old typo which causes the wrong declaration to be written
    and results in a double definition.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=786845

 codegen/valaccodebasemodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 4f53d78..56c4f6d 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -3242,7 +3242,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                        ccode.add_return (new CCodeConstant ("FALSE"));
 
                        pop_function ();
-                       cfile.add_function_declaration (function);
+                       cfile.add_function_declaration (wrapper);
                        cfile.add_function (wrapper);
 
                        /* Now the code to call g_traverse with the above */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]