diff options
author | Chris Xiong <chirs241097@gmail.com> | 2019-11-08 01:34:09 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2019-11-08 01:34:09 +0800 |
commit | 2aa2ce24207d2e495dbe9d2cc3656229aa768f19 (patch) | |
tree | 47ceea3bb6f6d1971a55c6e43fc9765ba5fe5d66 /doc/APIdoc.md | |
parent | 048e57b723c946d96aca260e26ba60dd380fde90 (diff) | |
download | QMidiPlayer-2aa2ce24207d2e495dbe9d2cc3656229aa768f19.tar.xz |
Documentation update time!
Diffstat (limited to 'doc/APIdoc.md')
-rw-r--r-- | doc/APIdoc.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/APIdoc.md b/doc/APIdoc.md index 968aa97..8e3a181 100644 --- a/doc/APIdoc.md +++ b/doc/APIdoc.md @@ -74,7 +74,7 @@ Hooks use the universal `ICallBack` interface. Some of those also accept a point When you register a hook, you provide the core with a instance of your class that implements the `ICallBack` interface and your `userdata` to be used when the core is calling the callback. When the callback is called, it will be fed with proper `callerdata` generated by the core and the `userdata` you provided. Type of `callerdata` varies by hooks. Event -reader and handler hooks have `SEventCallBackData*` as their `callerdata`. All other callbacks at this time have `NULL` +reader and handler hooks have `SEventCallBackData*` as their `callerdata`. All other callbacks at this time have `nullptr` as their `callerdata`. **Don't try directly modifying the members of callerdata!** # 4. Functionalities @@ -152,7 +152,7 @@ type of the event together with the channel this event goes to. Contains the raw data for string-like events. - default constructor: `SEvent()` sets everything to zero or empty. -- constructor with parameters: `SEvent(uint32_t _iid,uint32_t _t,char _tp,uint32_t _p1,uint32_t _p2,const char* s=NULL)` +- constructor with parameters: `SEvent(uint32_t _iid,uint32_t _t,char _tp,uint32_t _p1,uint32_t _p2,const char* s=nullptr)` fills the event with the parameters given. - `friend bool operator <(const SEvent& a,const SEvent& b)` compares events by their timestamps. Ties are broken by comparing precedence in file. |