From d6a9571641bcb34acb3521feb08eea33195fd9ca Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Dec 2017 13:59:47 -0500 Subject: Use nullptr --- ingen/Atom.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ingen/Atom.hpp') 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)); -- cgit v1.2.1