summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-25 13:59:47 -0500
committerDavid Robillard <d@drobilla.net>2017-12-25 16:26:13 -0500
commitd6a9571641bcb34acb3521feb08eea33195fd9ca (patch)
tree5c28e2800d829b7b1896e2fcbe3f8870b88e039d /ingen
parent25177612b20f7d3ebd4138fed9cd9acffec7e756 (diff)
downloadingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.gz
ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.bz2
ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.zip
Use nullptr
Diffstat (limited to 'ingen')
-rw-r--r--ingen/Atom.hpp4
-rw-r--r--ingen/Store.hpp2
-rw-r--r--ingen/client/PluginUI.hpp2
3 files changed, 4 insertions, 4 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));
diff --git a/ingen/Store.hpp b/ingen/Store.hpp
index 485b7355..52c9012b 100644
--- a/ingen/Store.hpp
+++ b/ingen/Store.hpp
@@ -45,7 +45,7 @@ public:
Node* get(const Raul::Path& path) {
const iterator i = find(path);
- return (i == end()) ? NULL : i->second.get();
+ return (i == end()) ? nullptr : i->second.get();
}
typedef std::pair<const_iterator, const_iterator> const_range;
diff --git a/ingen/client/PluginUI.hpp b/ingen/client/PluginUI.hpp
index c44cad82..45475cfe 100644
--- a/ingen/client/PluginUI.hpp
+++ b/ingen/client/PluginUI.hpp
@@ -59,7 +59,7 @@ public:
* no widget and the UI can not be used.
*/
bool instantiate();
- bool instantiated () { return _instance != NULL; }
+ bool instantiated () { return _instance != nullptr; }
SuilWidget get_widget();