summaryrefslogtreecommitdiffstats
path: root/src/Parser.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-25 15:26:48 -0500
committerDavid Robillard <d@drobilla.net>2017-12-25 16:26:13 -0500
commit15b3b0e9f8823752f80c7e597a70749813e61c79 (patch)
tree3f324c6e2a455be8b929456dadbf06520889d435 /src/Parser.cpp
parentd6a9571641bcb34acb3521feb08eea33195fd9ca (diff)
downloadingen-15b3b0e9f8823752f80c7e597a70749813e61c79.tar.gz
ingen-15b3b0e9f8823752f80c7e597a70749813e61c79.tar.bz2
ingen-15b3b0e9f8823752f80c7e597a70749813e61c79.zip
Always use braces
Diffstat (limited to 'src/Parser.cpp')
-rw-r--r--src/Parser.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Parser.cpp b/src/Parser.cpp
index 68cd774f..2115ab74 100644
--- a/src/Parser.cpp
+++ b/src/Parser.cpp
@@ -545,8 +545,9 @@ parse_properties(Ingen::World* world,
target->put(uri, properties, ctx);
// Set passed properties last to override any loaded values
- if (data)
+ if (data) {
target->put(uri, data.get(), ctx);
+ }
return true;
}
@@ -700,10 +701,12 @@ Parser::parse_file(Ingen::World* world,
serd_env_free(env);
world->log().info(fmt("Loading %1% from %2%\n") % uri % file_path);
- if (parent)
+ if (parent) {
world->log().info(fmt("Parent: %1%\n") % parent->c_str());
- if (symbol)
+ }
+ if (symbol) {
world->log().info(fmt("Symbol: %1%\n") % symbol->c_str());
+ }
Sord::Node subject(*world->rdf_world(), Sord::Node::URI, uri);
boost::optional<Raul::Path> parsed_path