aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2021-01-27 00:04:56 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2021-01-27 00:04:56 +0800
commit27a695e669b3074bb2a7dcf08553d5070a20ff05 (patch)
tree6c3c6e2da1f5951064df24f2590c695f08a3be76
parent2a6bdc1a9b4d48dea9583e84ce2a91b8397bf099 (diff)
downloadQMidiPlayer-27a695e669b3074bb2a7dcf08553d5070a20ff05.tar.xz
Fix all missing return statements in the current code base.
-rw-r--r--visualization/renderer/qmppluginapistub.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/visualization/renderer/qmppluginapistub.cpp b/visualization/renderer/qmppluginapistub.cpp
index ae424b4..6c6424c 100644
--- a/visualization/renderer/qmppluginapistub.cpp
+++ b/visualization/renderer/qmppluginapistub.cpp
@@ -127,7 +127,7 @@ void qmpPluginAPIStub::unregisterFunctionality(std::string name)
core->vf = nullptr;
}
-int qmpPluginAPIStub::registerUIHook(std::string e, ICallBack *cb, void *userdat) {}
+int qmpPluginAPIStub::registerUIHook(std::string e, ICallBack *cb, void *userdat) {return -1;}
int qmpPluginAPIStub::registerUIHook(std::string e, callback_t cb, void *userdat)
{
if (e == "main.start")
@@ -147,14 +147,14 @@ void qmpPluginAPIStub::unregisterUIHook(std::string e, int hook)
void qmpPluginAPIStub::registerMidiOutDevice(qmpMidiOutDevice *dev, std::string name) {}
void qmpPluginAPIStub::unregisterMidiOutDevice(std::string name) {}
-int qmpPluginAPIStub::registerEventReaderIntf(ICallBack *cb, void *userdata) {}
+int qmpPluginAPIStub::registerEventReaderIntf(ICallBack *cb, void *userdata) {return -1;}
void qmpPluginAPIStub::unregisterEventReaderIntf(int intfhandle) {}
-int qmpPluginAPIStub::registerEventHandlerIntf(ICallBack *cb, void *userdata) {}
+int qmpPluginAPIStub::registerEventHandlerIntf(ICallBack *cb, void *userdata) {return -1;}
void qmpPluginAPIStub::unregisterEventHandlerIntf(int intfhandle) {}
-int qmpPluginAPIStub::registerFileReadFinishedHandlerIntf(ICallBack *cb, void *userdata) {}
+int qmpPluginAPIStub::registerFileReadFinishedHandlerIntf(ICallBack *cb, void *userdata) {return -1;}
void qmpPluginAPIStub::unregisterFileReadFinishedHandlerIntf(int intfhandle) {}
-int qmpPluginAPIStub::registerEventHandler(callback_t cb, void *userdata, bool post) {}
+int qmpPluginAPIStub::registerEventHandler(callback_t cb, void *userdata, bool post) {return -1;}
void qmpPluginAPIStub::unregisterEventHandler(int id) {}
int qmpPluginAPIStub::registerEventReadHandler(callback_t cb, void *userdata)
{