From d6a9571641bcb34acb3521feb08eea33195fd9ca Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Dec 2017 13:59:47 -0500 Subject: Use nullptr --- src/gui/ingen_gui_lv2.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/gui/ingen_gui_lv2.cpp') diff --git a/src/gui/ingen_gui_lv2.cpp b/src/gui/ingen_gui_lv2.cpp index 005ed270..01ddc23e 100644 --- a/src/gui/ingen_gui_lv2.cpp +++ b/src/gui/ingen_gui_lv2.cpp @@ -60,10 +60,10 @@ struct IngenLV2AtomSink : public AtomSink { struct IngenLV2UI { IngenLV2UI() : argc(0) - , argv(NULL) - , forge(NULL) - , world(NULL) - , sink(NULL) + , argv(nullptr) + , forge(nullptr) + , world(nullptr) + , sink(nullptr) {} int argc; @@ -97,9 +97,9 @@ instantiate(const LV2UI_Descriptor* descriptor, Ingen::IngenLV2UI* ui = new Ingen::IngenLV2UI(); - LV2_URID_Map* map = NULL; - LV2_URID_Unmap* unmap = NULL; - LV2_Log_Log* log = NULL; + LV2_URID_Map* map = nullptr; + LV2_URID_Unmap* unmap = nullptr; + LV2_Log_Log* log = nullptr; for (int i = 0; features[i]; ++i) { if (!strcmp(features[i]->URI, LV2_URID__map)) { map = (LV2_URID_Map*)features[i]->data; @@ -117,7 +117,7 @@ instantiate(const LV2UI_Descriptor* descriptor, if (!ui->world->load_module("client")) { delete ui; - return NULL; + return nullptr; } ui->sink = new Ingen::IngenLV2AtomSink( @@ -185,7 +185,7 @@ port_event(LV2UI_Handle handle, static const void* extension_data(const char* uri) { - return NULL; + return nullptr; } static const LV2UI_Descriptor descriptor = { @@ -204,6 +204,6 @@ lv2ui_descriptor(uint32_t index) case 0: return &descriptor; default: - return NULL; + return nullptr; } } -- cgit v1.2.1