File tree Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ namespace Internals {
14
14
class JsonBufferAllocated {
15
15
public:
16
16
void *operator new (size_t n, JsonBuffer *jsonBuffer) throw () {
17
+ if (!jsonBuffer) return NULL ;
17
18
return jsonBuffer->alloc (n);
18
19
}
19
20
Original file line number Diff line number Diff line change @@ -79,9 +79,6 @@ class JsonVariantBase {
79
79
FORCE_INLINE const JsonObjectSubscript operator [](const char *key) const ;
80
80
FORCE_INLINE const JsonObjectSubscript operator [](const String &key) const ;
81
81
82
- protected:
83
- JsonVariantBase () {}
84
-
85
82
private:
86
83
const TImpl *impl () const { return static_cast <const TImpl *>(this ); }
87
84
};
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ size_t List<T>::size() const {
21
21
22
22
template <typename T>
23
23
typename List<T>::node_type *List<T>::addNewNode() {
24
- if (!_buffer) return NULL ;
25
-
26
24
node_type *newNode = new (_buffer) node_type ();
27
25
28
26
if (_firstNode) {
You can’t perform that action at this time.
0 commit comments