From 6244d73850074631ceaaccdf7f755970323f8de2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 29 Sep 2018 12:34:41 +0200 Subject: Use nullptr --- ingen/AtomForgeSink.hpp | 2 +- ingen/World.hpp | 6 +++--- ingen/filesystem.hpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'ingen') diff --git a/ingen/AtomForgeSink.hpp b/ingen/AtomForgeSink.hpp index 14ff3a4c..ed8b0b8b 100644 --- a/ingen/AtomForgeSink.hpp +++ b/ingen/AtomForgeSink.hpp @@ -50,7 +50,7 @@ public: /** Append some data and return a reference to its start. */ intptr_t append(const void* buf, uint32_t len) { - // Record offset of the start of this write (+1 to avoid NULL) + // Record offset of the start of this write (+1 to avoid null) const intptr_t ref = _size + 1; // Update size and reallocate if necessary diff --git a/ingen/World.hpp b/ingen/World.hpp index fcaf0db5..89dc983b 100644 --- a/ingen/World.hpp +++ b/ingen/World.hpp @@ -64,9 +64,9 @@ class URIs; class INGEN_API World : public Raul::Noncopyable { public: /** Construct a new Ingen world. - * @param map LV2 URID map implementation, or NULL to use internal. - * @param unmap LV2 URID unmap implementation, or NULL to use internal. - * @param log LV2 log implementation, or NULL to use internal. + * @param map LV2 URID map implementation, or null to use internal. + * @param unmap LV2 URID unmap implementation, or null to use internal. + * @param log LV2 log implementation, or null to use internal. */ World(LV2_URID_Map* map, LV2_URID_Unmap* unmap, LV2_Log_Log* log); diff --git a/ingen/filesystem.hpp b/ingen/filesystem.hpp index d0fcdcd2..4b8e2b11 100644 --- a/ingen/filesystem.hpp +++ b/ingen/filesystem.hpp @@ -75,7 +75,7 @@ inline FilePath current_path() { struct Freer { void operator()(char* const ptr) { free(ptr); } }; - std::unique_ptr cpath(realpath(".", NULL)); + std::unique_ptr cpath(realpath(".", nullptr)); const FilePath path(cpath.get()); return path; } -- cgit v1.2.1