From eb32a2ac02c6d1adcfeb0a1a5522f8aaea442489 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 3 Apr 2018 12:26:38 +0200 Subject: i18n: provide for non-QObject classes See compat/tr.hpp for comment. --- api/plugin-support.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/plugin-support.hpp') diff --git a/api/plugin-support.hpp b/api/plugin-support.hpp index 8fc01b98..b3f3396b 100644 --- a/api/plugin-support.hpp +++ b/api/plugin-support.hpp @@ -32,7 +32,7 @@ #define OPENTRACK_SOLIB_PREFIX "lib" extern "C" typedef void* (*OPENTRACK_CTOR_FUNPTR)(void); -extern "C" typedef Metadata* (*OPENTRACK_METADATA_FUNPTR)(void); +extern "C" typedef Metadata_* (*OPENTRACK_METADATA_FUNPTR)(void); struct dylib final { @@ -72,7 +72,7 @@ struct dylib final if (check((Meta = (OPENTRACK_METADATA_FUNPTR) handle.resolve("GetMetadata"), !Meta))) return; - auto m = std::unique_ptr(Meta()); + auto m = std::unique_ptr(Meta()); icon = m->icon(); name = m->name(); -- cgit v1.2.3