diff options
author | David Robillard <d@drobilla.net> | 2017-12-25 13:59:47 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-25 16:26:13 -0500 |
commit | d6a9571641bcb34acb3521feb08eea33195fd9ca (patch) | |
tree | 5c28e2800d829b7b1896e2fcbe3f8870b88e039d /src/World.cpp | |
parent | 25177612b20f7d3ebd4138fed9cd9acffec7e756 (diff) | |
download | ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.gz ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.bz2 ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.zip |
Use nullptr
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/World.cpp b/src/World.cpp index fc82079f..8b9c899d 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -60,7 +60,7 @@ class Store; static Glib::Module* ingen_load_module(Log& log, const string& name) { - Glib::Module* module = NULL; + Glib::Module* module = nullptr; // Search INGEN_MODULE_PATH first bool module_path_found; @@ -89,11 +89,11 @@ ingen_load_module(Log& log, const string& name) } else if (!module_path_found) { log.error(fmt("Unable to find %1% (%2%)\n") % name % Glib::Module::get_last_error()); - return NULL; + return nullptr; } else { log.error(fmt("Unable to load %1% from %2% (%3%)\n") % name % module_path % Glib::Module::get_last_error()); - return NULL; + return nullptr; } } @@ -139,7 +139,7 @@ public: LilvNode* ingen_Plugin = lilv_new_uri( lilv_world, INGEN__Plugin); LilvNodes* internals = lilv_world_find_nodes( - lilv_world, NULL, rdf_type, ingen_Plugin); + lilv_world, nullptr, rdf_type, ingen_Plugin); LILV_FOREACH(nodes, i, internals) { const LilvNode* internal = lilv_nodes_get(internals, i); lilv_world_load_resource(lilv_world, internal); @@ -280,7 +280,7 @@ World::load_module(const char* name) } log().info(fmt("Loading %1% module\n") % name); Glib::Module* lib = ingen_load_module(log(), name); - Ingen::Module* (*module_load)() = NULL; + Ingen::Module* (*module_load)() = nullptr; if (lib && lib->get_symbol("ingen_module_load", (void*&)module_load)) { Module* module = module_load(); if (module) { |