summaryrefslogtreecommitdiffstats
path: root/src/Parser.cpp
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 /src/Parser.cpp
parent25177612b20f7d3ebd4138fed9cd9acffec7e756 (diff)
downloadingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.gz
ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.tar.bz2
ingen-d6a9571641bcb34acb3521feb08eea33195fd9ca.zip
Use nullptr
Diffstat (limited to 'src/Parser.cpp')
-rw-r--r--src/Parser.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Parser.cpp b/src/Parser.cpp
index bf7dc82a..68cd774f 100644
--- a/src/Parser.cpp
+++ b/src/Parser.cpp
@@ -67,7 +67,7 @@ Parser::find_resources(Sord::World& world,
std::string file_path = "";
Sord::Iter f = model.find(resource, rdfs_seeAlso, nil);
if (!f.end()) {
- uint8_t* p = serd_file_uri_parse(f.get_object().to_u_string(), NULL);
+ uint8_t* p = serd_file_uri_parse(f.get_object().to_u_string(), nullptr);
file_path = (const char*)p;
free(p);
}
@@ -441,7 +441,7 @@ parse_graph(Ingen::World* world,
// Get all properties
boost::optional<PortRecord> port_record = get_port(
- world, model, port, subctx, block_path, NULL);
+ world, model, port, subctx, block_path, nullptr);
if (!port_record) {
world->log().error(fmt("Invalid port %1%\n") % port);
return boost::optional<Raul::Path>();
@@ -733,7 +733,7 @@ Parser::parse_string(Ingen::World* world,
// Load string into model
Sord::Model model(*world->rdf_world(), base_uri, SORD_SPO|SORD_PSO, false);
- SerdEnv* env = serd_env_new(NULL);
+ SerdEnv* env = serd_env_new(nullptr);
if (!base_uri.empty()) {
const SerdNode base = serd_node_from_string(
SERD_URI, (const uint8_t*)base_uri.c_str());
@@ -741,7 +741,7 @@ Parser::parse_string(Ingen::World* world,
}
model.load_string(env, SERD_TURTLE, str.c_str(), str.length(), base_uri);
- Raul::URI actual_base((const char*)serd_env_get_base_uri(env, NULL)->buf);
+ Raul::URI actual_base((const char*)serd_env_get_base_uri(env, nullptr)->buf);
serd_env_free(env);
world->log().info(fmt("Parsing string (base %1%)\n") % base_uri);