mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: platform/NonCopyable.h
- Revision:
- 187:0387e8f68319
- Parent:
- 184:08ed48f1de7f
- Child:
- 188:bcfe06ba3d64
--- a/platform/NonCopyable.h Fri Jun 22 16:45:37 2018 +0100 +++ b/platform/NonCopyable.h Thu Sep 06 13:40:20 2018 +0100 @@ -169,7 +169,7 @@ * Copy of non copyable resources can lead to resource leak and random error. */ MBED_DEPRECATED("Invalid copy construction of a NonCopyable resource.") - NonCopyable(const NonCopyable&) + NonCopyable(const NonCopyable &) { debug("Invalid copy construction of a NonCopyable resource: %s\r\n", MBED_PRETTY_FUNCTION); } @@ -184,7 +184,7 @@ * Copy of non copyable resources can lead to resource leak and random error. */ MBED_DEPRECATED("Invalid copy assignment of a NonCopyable resource.") - NonCopyable& operator=(const NonCopyable&) + NonCopyable &operator=(const NonCopyable &) { debug("Invalid copy assignment of a NonCopyable resource: %s\r\n", MBED_PRETTY_FUNCTION); return *this; @@ -196,13 +196,13 @@ * Declare copy constructor as private, any attempt to copy construct * a NonCopyable will fail at compile time. */ - NonCopyable(const NonCopyable&); + NonCopyable(const NonCopyable &); /** * Declare copy assignment operator as private, any attempt to copy assign * a NonCopyable will fail at compile time. */ - NonCopyable& operator=(const NonCopyable&); + NonCopyable &operator=(const NonCopyable &); #endif };