diff options
author | David Robillard <d@drobilla.net> | 2014-11-06 20:32:06 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-06 20:32:06 +0000 |
commit | bc4dc29c20deff4bf9df1c6424315aa557c0ac72 (patch) | |
tree | c285a1b3bdea2a2eb4b4c409b54897c51602b344 /src | |
parent | 84ea08aab648697b766a8b98949f13a0b4d61a95 (diff) | |
download | ingen-bc4dc29c20deff4bf9df1c6424315aa557c0ac72.tar.gz ingen-bc4dc29c20deff4bf9df1c6424315aa557c0ac72.tar.bz2 ingen-bc4dc29c20deff4bf9df1c6424315aa557c0ac72.zip |
Fix compilation with compilers that fail to convert boost::optional to bool (fix #990).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5478 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/serialisation/Parser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp index e6e3f2c9..6a8547c5 100644 --- a/src/serialisation/Parser.cpp +++ b/src/serialisation/Parser.cpp @@ -615,11 +615,11 @@ Parser::parse_file(Ingen::World* world, target->set_property(Node::path_to_uri(*parsed_path), Raul::URI(INGEN__file), world->forge().alloc_uri(uri)); + return true; } else { world->log().warn("Document URI lost\n"); + return false; } - - return parsed_path; } bool @@ -642,7 +642,7 @@ Parser::parse_string(Ingen::World* world, world->log().info(fmt("Parsing string (base %1%)\n") % base_uri); Sord::Node subject; - return parse(world, target, model, base_uri, subject, parent, symbol, data); + return !!parse(world, target, model, base_uri, subject, parent, symbol, data); } } // namespace Serialisation |