Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Diff: public/CallChainOfFunctionPointersWithContext.h
- Revision:
- 144:c025c8839682
- Parent:
- 140:407d134c179d
- Child:
- 145:a7ded9ad83c8
diff -r 8bdf577b1598 -r c025c8839682 public/CallChainOfFunctionPointersWithContext.h
--- 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:
    