We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d49eb5 commit f6c5765Copy full SHA for f6c5765
include/cppcore/Memory/TScratchAllocator.h
@@ -80,20 +80,20 @@ class TScratchAllocator {
80
CPPCORE_NONE_COPYING(TScratchAllocator)
81
82
private:
83
- T *mBlock;
+ T *mBlock = nullptr;
84
size_t mSize;
85
size_t mIndex;
86
};
87
88
template<class T>
89
inline TScratchAllocator<T>::TScratchAllocator() :
90
- mBlock(nullptr), mSize(0u), mIndex(0u) {
+ mSize(0u), mIndex(0u) {
91
// empty
92
}
93
94
95
inline TScratchAllocator<T>::TScratchAllocator(size_t numItems) :
96
- mBlock(nullptr), mSize(numItems), mIndex(0u) {
+ mSize(numItems), mIndex(0u) {
97
reserve(numItems);
98
99
0 commit comments