summaryrefslogtreecommitdiffstats
path: root/ingen
diff options
context:
space:
mode:
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();