diff options
author | David Robillard <d@drobilla.net> | 2017-12-25 13:59:47 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-25 16:26:13 -0500 |
commit | d6a9571641bcb34acb3521feb08eea33195fd9ca (patch) | |
tree | 5c28e2800d829b7b1896e2fcbe3f8870b88e039d /ingen/Atom.hpp | |
parent | 25177612b20f7d3ebd4138fed9cd9acffec7e756 (diff) | |
download | ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.gz ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.bz2 ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.zip |
Use nullptr
Diffstat (limited to 'ingen/Atom.hpp')
-rw-r--r-- | ingen/Atom.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ingen/Atom.hpp b/ingen/Atom.hpp index 27b17fa2..b7b418e3 100644 --- a/ingen/Atom.hpp +++ b/ingen/Atom.hpp @@ -43,7 +43,7 @@ namespace Ingen { */ class INGEN_API Atom { public: - Atom() { _atom.size = 0; _atom.type = 0; _body.ptr = NULL; } + Atom() { _atom.size = 0; _atom.type = 0; _body.ptr = nullptr; } ~Atom() { dealloc(); } /** Construct a raw atom. @@ -53,7 +53,7 @@ public: Atom(uint32_t size, LV2_URID type, const void* body) { _atom.size = size; _atom.type = type; - _body.ptr = NULL; + _body.ptr = nullptr; if (is_reference()) { _body.ptr = (LV2_Atom*)malloc(sizeof(LV2_Atom) + size); memcpy(_body.ptr, &_atom, sizeof(LV2_Atom)); |