From 3f72121ac41741d53e4916f1275cbd4f93259c4d Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sat, 25 May 2019 22:40:15 +0800 Subject: Massive code refactor en cours! Less complain from compilers: - use nullptr instead of NULL - use types for event fields - explicit type casting added Stop saving parameters of meta events in p1/p2 fields of SEvent. callback_t now uses std::function, deprecating ICallback. Not recommended for daily usage, or even testing: the code refactor is still a work in progress. --- sample-plugin/sampleplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sample-plugin/sampleplugin.cpp') diff --git a/sample-plugin/sampleplugin.cpp b/sample-plugin/sampleplugin.cpp index 64e5584..baf2786 100644 --- a/sample-plugin/sampleplugin.cpp +++ b/sample-plugin/sampleplugin.cpp @@ -2,7 +2,7 @@ #include "sampleplugin.hpp" qmpSamplePlugin::qmpSamplePlugin(qmpPluginAPI* _api){api=_api;} -qmpSamplePlugin::~qmpSamplePlugin(){api=NULL;} +qmpSamplePlugin::~qmpSamplePlugin(){api=nullptr;} void qmpSamplePlugin::init() {fputs("Hello world from plugin init!\n",stderr);} void qmpSamplePlugin::deinit() -- cgit v1.2.3