mirror of https://github.com/ARMmbed/mbed-os.git
Mbed OS does not enable C++ exceptions, so we should call `new` with `std::nothrow` which returns a C-style NULL pointer when allocation fails to allow error handling. For consistency of style within the same file, this commit also replaces `malloc()` and `free()` to `new (std::nothrow)` and `delete`. |
||
|---|---|---|
| .. | ||
| BufferedBlockDevice.cpp | ||
| ChainingBlockDevice.cpp | ||
| ExhaustibleBlockDevice.cpp | ||
| FlashSimBlockDevice.cpp | ||
| HeapBlockDevice.cpp | ||
| MBRBlockDevice.cpp | ||
| ObservingBlockDevice.cpp | ||
| ProfilingBlockDevice.cpp | ||
| ReadOnlyBlockDevice.cpp | ||
| SFDP.cpp | ||
| SlicingBlockDevice.cpp | ||