From a7407edaf81c685d4a389785a405a53a5de4b148 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Tue, 12 May 2020 00:58:40 +0800 Subject: Format EVERYTHING. Hopefully this will make the source code less horrendous and actually readable. The command used was: ``` astyle --suffix=none --style=allman --attach-extern-c --attach-closing-while --indent-switches --indent-after-parens --pad-oper --pad-header --unpad-paren --align-pointer=name --recursive './*.cpp,*.hpp' ``` --- sample-plugin/sampleplugin.cpp | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'sample-plugin/sampleplugin.cpp') diff --git a/sample-plugin/sampleplugin.cpp b/sample-plugin/sampleplugin.cpp index baf2786..6ca9b3e 100644 --- a/sample-plugin/sampleplugin.cpp +++ b/sample-plugin/sampleplugin.cpp @@ -1,11 +1,27 @@ #include #include "sampleplugin.hpp" -qmpSamplePlugin::qmpSamplePlugin(qmpPluginAPI* _api){api=_api;} -qmpSamplePlugin::~qmpSamplePlugin(){api=nullptr;} +qmpSamplePlugin::qmpSamplePlugin(qmpPluginAPI *_api) +{ + api = _api; +} +qmpSamplePlugin::~qmpSamplePlugin() +{ + api = nullptr; +} void qmpSamplePlugin::init() -{fputs("Hello world from plugin init!\n",stderr);} +{ + fputs("Hello world from plugin init!\n", stderr); +} void qmpSamplePlugin::deinit() -{fputs("Bye!\n",stderr);} -const char* qmpSamplePlugin::pluginGetName(){return "QMidiPlayer Sample Plugin";} -const char* qmpSamplePlugin::pluginGetVersion(){return "0.0.0";} +{ + fputs("Bye!\n", stderr); +} +const char *qmpSamplePlugin::pluginGetName() +{ + return "QMidiPlayer Sample Plugin"; +} +const char *qmpSamplePlugin::pluginGetVersion() +{ + return "0.0.0"; +} -- cgit v1.2.3