From 186deab80cc9a4b742027d74f8025e15bbd334ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 29 Jun 2021 13:17:37 +0200 Subject: Create a custom OTRPluginFactory object instead of using the KGenericFactory template. This prevents an unwanted creation of a hidden second instance if the library is built with enabled hidden visibility. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This resolves issue #3. Signed-off-by: Slávek Banko --- src/otrplugin.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/otrplugin.cpp') diff --git a/src/otrplugin.cpp b/src/otrplugin.cpp index 0d9a5fe..a78cfd5 100644 --- a/src/otrplugin.cpp +++ b/src/otrplugin.cpp @@ -18,6 +18,10 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ +#if defined(HAVE_CONFIG_H) +#include "config.h" +#endif + #include #include #include @@ -56,11 +60,8 @@ */ - -typedef KGenericFactory OTRPluginFactory; - -OTRPlugin::OTRPlugin( TQObject *parent, const char *name, const TQStringList & /* args */ ) -: Kopete::Plugin( OTRPluginFactory::instance(), parent, name ) +OTRPlugin::OTRPlugin( TDEInstance *instance, TQObject *parent, const char *name, const TQStringList & /* args */ ) +: Kopete::Plugin( instance, parent, name ) { if( !pluginStatic_ ) pluginStatic_=this; -- cgit v1.2.1