From 71808f61f7db48a7ab4e16537b94ee5686749909 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Dec 2017 16:05:05 -0500 Subject: Remove superfluous using namespace declarations --- src/Parser.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/Parser.cpp') diff --git a/src/Parser.cpp b/src/Parser.cpp index 2115ab74..ed130e94 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -41,8 +41,6 @@ #define NS_RDF "http://www.w3.org/1999/02/22-rdf-syntax-ns#" #define NS_RDFS "http://www.w3.org/2000/01/rdf-schema#" -using namespace std; - namespace Ingen { std::set @@ -194,7 +192,7 @@ get_port(Ingen::World* world, const std::string subject_str = subject.to_string(); const size_t last_slash = subject_str.find_last_of("/"); - sym = ((last_slash == string::npos) + sym = ((last_slash == std::string::npos) ? subject_str : subject_str.substr(last_slash + 1)); } @@ -359,7 +357,8 @@ parse_graph(Ingen::World* world, const Sord::Node& graph = subject; const Sord::Node nil; - string graph_path_str = relative_uri(base_uri, subject.to_string(), true); + std::string graph_path_str = relative_uri( + base_uri, subject.to_string(), true); if (parent && symbol) { graph_path_str = parent->child(*symbol); } else if (parent) { -- cgit v1.2.1