From dfad81a3c8aee40a515f0ecefb0180a86368b54a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 23 Feb 2013 20:07:09 +0000 Subject: Remove Raul::fmt wrapper, the last vestige of boost dependency for Raul. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5077 a436a847-0d15-0410-975c-d299462d15a1 --- src/serialisation/Parser.cpp | 22 +++++++++++----------- src/serialisation/Serialiser.cpp | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'src/serialisation') diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp index adc3f208..c0f8cf3a 100644 --- a/src/serialisation/Parser.cpp +++ b/src/serialisation/Parser.cpp @@ -152,7 +152,7 @@ get_port(Ingen::World* world, if (i == props.end() || i->second.type() != world->forge().Int || i->second.get() < 0) { - world->log().warn(Raul::fmt("Port %1% has no valid index\n") % subject); + world->log().warn(fmt("Port %1% has no valid index\n") % subject); return boost::optional(); } index = i->second.get(); @@ -160,7 +160,7 @@ get_port(Ingen::World* world, // Get symbol Resource::Properties::const_iterator s = props.find(uris.lv2_symbol); if (s == props.end()) { - world->log().warn(Raul::fmt("Port %1% has no symbol\n") % subject); + world->log().warn(fmt("Port %1% has no symbol\n") % subject); return boost::optional(); } const Raul::Symbol port_sym(s->second.ptr()); @@ -235,7 +235,7 @@ parse_block(Ingen::World* world, std::cerr << "type: " << i.get_object().type() << std::endl; } world->log().error( - Raul::fmt("Block %1% (%2%) missing mandatory ingen:prototype\n") % + fmt("Block %1% (%2%) missing mandatory ingen:prototype\n") % subject.to_string() % path); return boost::optional(); } @@ -316,7 +316,7 @@ parse_graph(Ingen::World* world, graph_path_str = parent->child(*a_symbol); if (!Raul::Path::is_valid(graph_path_str)) { - world->log().error(Raul::fmt("Graph %1% has invalid path\n") + world->log().error(fmt("Graph %1% has invalid path\n") % graph_path_str); return boost::optional(); } @@ -345,7 +345,7 @@ parse_graph(Ingen::World* world, boost::optional port_record = get_port( world, model, port, block_path, index); if (!port_record) { - world->log().error(Raul::fmt("Invalid port %1%\n") % port); + world->log().error(fmt("Invalid port %1%\n") % port); return boost::optional(); } @@ -366,7 +366,7 @@ parse_graph(Ingen::World* world, boost::optional port_record = get_port( world, model, port, graph_path, index); if (!port_record) { - world->log().error(Raul::fmt("Invalid port %1%\n") % port); + world->log().error(fmt("Invalid port %1%\n") % port); return boost::optional(); } @@ -578,7 +578,7 @@ Parser::parse_file(Ingen::World* world, try { uri = Glib::filename_to_uri(path, ""); } catch (const Glib::ConvertError& e) { - world->log().error(Raul::fmt("Path to URI conversion error: %1%\n") + world->log().error(fmt("Path to URI conversion error: %1%\n") % e.what()); return false; } @@ -593,11 +593,11 @@ Parser::parse_file(Ingen::World* world, serd_env_free(env); - world->log().info(Raul::fmt("Parsing %1%\n") % path); + world->log().info(fmt("Parsing %1%\n") % path); if (parent) - world->log().info(Raul::fmt("Parent: %1%\n") % parent->c_str()); + world->log().info(fmt("Parent: %1%\n") % parent->c_str()); if (symbol) - world->log().info(Raul::fmt("Symbol: %1%\n") % symbol->c_str()); + world->log().info(fmt("Symbol: %1%\n") % symbol->c_str()); Sord::Node subject(*world->rdf_world(), Sord::Node::URI, uri); boost::optional parsed_path @@ -631,7 +631,7 @@ Parser::parse_string(Ingen::World* world, model.load_string(env, SERD_TURTLE, str.c_str(), str.length(), base_uri); serd_env_free(env); - world->log().info(Raul::fmt("Parsing string (base %1%)\n") % base_uri); + 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); diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp index db4d8430..45d95050 100644 --- a/src/serialisation/Serialiser.cpp +++ b/src/serialisation/Serialiser.cpp @@ -157,7 +157,7 @@ Serialiser::Impl::write_manifest(const std::string& bundle_path, std::string lib(Glib::Module::build_path(INGEN_BUNDLE_DIR, "ingen_lv2")); std::string link(Glib::Module::build_path(bundle_path, "ingen_lv2")); if (symlink(lib.c_str(), link.c_str())) { - _world.log().error(Raul::fmt("Error creating link %1% => %2% (%3%\n") + _world.log().error(fmt("Error creating link %1% => %2% (%3%\n") % lib % link % strerror(errno)); } @@ -260,7 +260,7 @@ Serialiser::Impl::finish() if (_mode == Mode::TO_FILE) { SerdStatus st = _model->write_to_file(_base_uri, SERD_TURTLE); if (st) { - _world.log().error(Raul::fmt("Error writing file %1% (%2%)\n") + _world.log().error(fmt("Error writing file %1% (%2%)\n") % _base_uri % serd_strerror(st)); } } else { -- cgit v1.2.1