From 090239180d98f6d249f1639c1c868e660d598b36 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Wed, 29 Apr 2020 08:50:21 +0300 Subject: [PATCH] Small fixes (upgrade Vala) --- src/loader/PluginLoader.vala | 2 +- test/plugins/typeA/typeA1/TypeA1.vala | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/loader/PluginLoader.vala b/src/loader/PluginLoader.vala index 203ce6d..f75f8d9 100644 --- a/src/loader/PluginLoader.vala +++ b/src/loader/PluginLoader.vala @@ -34,7 +34,7 @@ namespace GObject { * Loads the module. */ public override bool load () { - module = GLib.Module.open (path, GLib.ModuleFlags.BIND_LAZY); + module = GLib.Module.open (path, GLib.ModuleFlags.LAZY); if (null == module) { stderr.printf("Cannot load module %s\n", path); return false; diff --git a/test/plugins/typeA/typeA1/TypeA1.vala b/test/plugins/typeA/typeA1/TypeA1.vala index 45880d4..d80cdf5 100644 --- a/test/plugins/typeA/typeA1/TypeA1.vala +++ b/test/plugins/typeA/typeA1/TypeA1.vala @@ -25,7 +25,8 @@ public class TypeA1 : PluginTypeA { public override void method_a () { stdout.puts ("TypeA1.method_a () called\n"); stdout.puts ("Call IHostLoaderTest.method_host () from TypeA1:\n "); - (host as IHostLoaderTest).method_host (); + var test = host as IHostLoaderTest; + if (test != null) test.method_host (); } }