summaryrefslogtreecommitdiff
path: root/src/core/smallmatrix_type.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/smallmatrix_type.hpp')
-rw-r--r--src/core/smallmatrix_type.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/smallmatrix_type.hpp b/src/core/smallmatrix_type.hpp
index cd4dee4e3..faa531d5f 100644
--- a/src/core/smallmatrix_type.hpp
+++ b/src/core/smallmatrix_type.hpp
@@ -46,13 +46,13 @@ protected:
public:
- SmallMatrix() : data(NULL), width(0), height(0), capacity(0) {}
+ SmallMatrix() : data(nullptr), width(0), height(0), capacity(0) {}
/**
* Copy constructor.
* @param other The other matrix to copy.
*/
- SmallMatrix(const SmallMatrix &other) : data(NULL), width(0), height(0), capacity(0)
+ SmallMatrix(const SmallMatrix &other) : data(nullptr), width(0), height(0), capacity(0)
{
this->Assign(other);
}
@@ -112,7 +112,7 @@ public:
this->width = 0;
this->capacity = 0;
free(this->data);
- this->data = NULL;
+ this->data = nullptr;
}
/**
@@ -216,8 +216,8 @@ public:
inline void Resize(uint new_width, uint new_height)
{
uint new_capacity = new_width * new_height;
- T *new_data = NULL;
- void (*copy)(T *dest, const T *src, size_t count) = NULL;
+ T *new_data = nullptr;
+ void (*copy)(T *dest, const T *src, size_t count) = nullptr;
if (new_capacity > this->capacity) {
/* If the data doesn't fit into current capacity, resize and copy ... */
new_data = MallocT<T>(new_capacity);