High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: public/CallChainOfFunctionPointersWithContext.h
- Revision:
- 144:c025c8839682
- Parent:
- 140:407d134c179d
- Child:
- 145:a7ded9ad83c8
--- a/public/CallChainOfFunctionPointersWithContext.h Fri Nov 21 09:23:24 2014 +0000 +++ b/public/CallChainOfFunctionPointersWithContext.h Fri Nov 21 09:23:24 2014 +0000 @@ -60,7 +60,7 @@ template <typename ContextType> class CallChainOfFunctionPointersWithContext { public: - typedef FunctionPointerWithContext<ContextType>* pFunctionPointerWithContext_t; + typedef FunctionPointerWithContext<ContextType> *pFunctionPointerWithContext_t; public: /** Create an empty chain @@ -122,8 +122,9 @@ * chained FunctionPointers. */ void call(ContextType context) { - if (chainHead) + if (chainHead) { chainHead->call(context); + } } private: