diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-01-13 19:26:02 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-01-13 19:26:02 +0300 |
commit | c8d8380a2c6679ef0170d374d5f34354616e0e10 (patch) | |
tree | 4dc43a67edf60567ace4718a45a771f2018ad872 /src/Endstops/ZProbe.h | |
parent | 36a72fd1cbc274a6f932294f184133e08d681858 (diff) |
Various
FreelistManager in RRFLibraries now has its own namespace
Class GCodeMachineState now uses FreelistManager to manage its storage
Leading tabs are treated as going to the next multiple of 4 spaces from
start of line or end of line number etc.
Generate warning if both tabs and spaces are used to indent blocks
Diffstat (limited to 'src/Endstops/ZProbe.h')
-rw-r--r-- | src/Endstops/ZProbe.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Endstops/ZProbe.h b/src/Endstops/ZProbe.h index 77c1ea08..0e2b6801 100644 --- a/src/Endstops/ZProbe.h +++ b/src/Endstops/ZProbe.h @@ -91,8 +91,8 @@ protected: class MotorStallZProbe final : public ZProbe { public: - void* operator new(size_t sz) noexcept { return Allocate<MotorStallZProbe>(); } - void operator delete(void* p) noexcept { Release<MotorStallZProbe>(p); } + void* operator new(size_t sz) noexcept { return FreelistManager::Allocate<MotorStallZProbe>(); } + void operator delete(void* p) noexcept { FreelistManager::Release<MotorStallZProbe>(p); } MotorStallZProbe(unsigned int num) noexcept : ZProbe(num, ZProbeType::zMotorStall) { } ~MotorStallZProbe() noexcept override { } @@ -108,8 +108,8 @@ private: class DummyZProbe final : public ZProbe { public: - void* operator new(size_t sz) noexcept { return Allocate<DummyZProbe>(); } - void operator delete(void* p) noexcept { Release<DummyZProbe>(p); } + void* operator new(size_t sz) noexcept { return FreelistManager::Allocate<DummyZProbe>(); } + void operator delete(void* p) noexcept { FreelistManager::Release<DummyZProbe>(p); } DummyZProbe(unsigned int num) noexcept : ZProbe(num, ZProbeType::none) { } ~DummyZProbe() noexcept override { } |