Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Platform/Heap.h')
-rw-r--r--src/Platform/Heap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Platform/Heap.h b/src/Platform/Heap.h
index 01458d99..58b449cc 100644
--- a/src/Platform/Heap.h
+++ b/src/Platform/Heap.h
@@ -25,7 +25,7 @@ class StringHandle
{
public:
StringHandle() noexcept { slotPtr = nullptr; }
- StringHandle(const char *s) noexcept;
+ explicit StringHandle(const char *s) noexcept;
StringHandle(const char *s, size_t len) noexcept;
#if 0 // unused
@@ -55,7 +55,7 @@ protected:
static void GarbageCollectInternal() noexcept;
static void AdjustHandles(char *startAddr, char *endAddr, size_t moveDown, unsigned int numHandles) noexcept;
- IndexSlot *slotPtr;
+ IndexSlot * null slotPtr;
static ReadWriteLock heapLock;
static IndexBlock *indexRoot;
@@ -73,7 +73,7 @@ class AutoStringHandle : public StringHandle
{
public:
AutoStringHandle() noexcept : StringHandle() { }
- AutoStringHandle(const char *s) noexcept : StringHandle(s) { }
+ explicit AutoStringHandle(const char *s) noexcept : StringHandle(s) { }
AutoStringHandle(const char *s, size_t len) noexcept : StringHandle(s, len) { }
AutoStringHandle(const AutoStringHandle& other) noexcept;
AutoStringHandle(AutoStringHandle&& other) noexcept;