summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-09-29 12:34:41 +0200
committerDavid Robillard <d@drobilla.net>2018-09-29 12:34:41 +0200
commit6244d73850074631ceaaccdf7f755970323f8de2 (patch)
tree46a849e9d527051c8849fc768ea0b0917492ae31 /ingen
parente0e437c0fd970103685db2f1d0c83a9c461ad87f (diff)
downloadingen-6244d73850074631ceaaccdf7f755970323f8de2.tar.gz
ingen-6244d73850074631ceaaccdf7f755970323f8de2.tar.bz2
ingen-6244d73850074631ceaaccdf7f755970323f8de2.zip
Use nullptr
Diffstat (limited to 'ingen')
-rw-r--r--ingen/AtomForgeSink.hpp2
-rw-r--r--ingen/World.hpp6
-rw-r--r--ingen/filesystem.hpp2
3 files changed, 5 insertions, 5 deletions
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<char, Freer> cpath(realpath(".", NULL));
+ std::unique_ptr<char, Freer> cpath(realpath(".", nullptr));
const FilePath path(cpath.get());
return path;
}