Merge pull request #9344 from Pharap/fix-attach-function

Fix bug in templated attach function
pull/9428/head
Martin Kojtal 2019-01-18 11:44:26 +01:00 committed by GitHub
commit f48c1a9b13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -126,8 +126,8 @@ public:
*/
template<typename T>
void attach(T* tptr, void (T::*mptr)(void)) {
if((mptr != NULL) && (tptr != NULL)) {
rx = Callback<void()>(mptr, tptr);
if((tptr != NULL) && (mptr != NULL)) {
rx = Callback<void()>(tptr, mptr);
}
}