X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FNode.ct;h=4244e693d3ea7fb3d4e47e3d0cda226f87ea4781;hb=0eaf5340de8c2fbb02b1e0e13a797931e221dff3;hp=0a5a9c09f0c11d15c613024b7d20fbd71f1bdbc6;hpb=70905bebad1f8c394fceb3a5d2a493eeecf3bd13;p=senf.git diff --git a/Console/Node.ct b/Console/Node.ct index 0a5a9c0..4244e69 100644 --- a/Console/Node.ct +++ b/Console/Node.ct @@ -42,19 +42,19 @@ senf::console::DirectoryNode::traverse(ForwardRange const & range) DirectoryNode::ptr dir (thisptr()); const_iterator i (boost::begin(range)); const_iterator const i_end (boost::end(range)); - if (i != i_end && i->empty()) { + if (i != i_end && *i == std::string("")) { dir = root().thisptr(); ++ i; } while (i != i_end) { const_iterator next_i (i); ++ next_i; - if (*i == "..") { + if (*i == std::string("..")) { dir = dir->parent(); if (! dir) dir = root().thisptr(); } - else if (! i->empty() && *i != ".") { + else if (*i != std::string("") && *i != std::string(".")) { if (next_i == i_end) return dir->get(*i); else {