X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FNode.cc;h=46f96d30a7ac89a991d6123cf3c6993daebb8858;hb=649d1287af25496ff538bc97ea03a17cd03c4200;hp=6c4b8062f487205e9b544a0a5d037fa912c635cc;hpb=b6acba899f44ba9422476022c775cef823fc9337;p=senf.git diff --git a/senf/Utils/Console/Node.cc b/senf/Utils/Console/Node.cc index 6c4b806..46f96d3 100644 --- a/senf/Utils/Console/Node.cc +++ b/senf/Utils/Console/Node.cc @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2008 +// Copyright (C) 2008 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -51,7 +51,7 @@ namespace { output << "/\n"; dodump(output, level+1,static_cast(*i->second)); } - else if (i->second->isLink()) + else if (i->second->isLink()) output << "@ -> " << i->second->followLink().path() << '\n'; else output << '\n'; @@ -144,7 +144,7 @@ prefix_ senf::console::GenericNode::ptr senf::console::DirectoryNode::remove(std::string const & name) { ChildMap::iterator i (children_.find(name)); - if (i == children_.end()) + if (i == children_.end()) throw UnknownNodeNameException() << ": '" << name << "'"; GenericNode::ptr node (i->second); children_.erase(i); @@ -167,7 +167,7 @@ prefix_ void senf::console::DirectoryNode::add(GenericNode::ptr node) ++suffix; newName = node->name() + "-" + boost::lexical_cast(suffix); } while (children_.find(newName) != children_.end()); - SENF_LOG((senf::log::MESSAGE)("Uniquifying node '" << node->name() << "' to '" + SENF_LOG((senf::log::MESSAGE)("Uniquifying node '" << node->name() << "' to '" << newName << "'")); node->name(newName); }