X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FParse.cci;h=3ac5ed4684434112fe8952f05784d14701a3655a;hb=ecb47e13433d59c79a74a4641a2e68648f142723;hp=794b91e3f443f6039f5bf726cafd07dd6649728f;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Utils/Console/Parse.cci b/senf/Utils/Console/Parse.cci index 794b91e..3ac5ed4 100644 --- a/senf/Utils/Console/Parse.cci +++ b/senf/Utils/Console/Parse.cci @@ -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 @@ -226,7 +226,7 @@ senf::console::ParseCommandInfo::ArgumentIterator::dereference() const { if (b_ == e_) setRange(); - return b_->is(Token::ArgumentGroupOpen) + return b_->is(Token::ArgumentGroupOpen) ? boost::make_iterator_range(boost::next(b_), boost::prior(e_)) : boost::make_iterator_range(b_, e_); } @@ -329,7 +329,7 @@ senf::console::CheckedArgumentIteratorWrapper::operator++(int) prefix_ senf::console::CommandParser::Impl & senf::console::CommandParser::impl() { - SENF_ASSERT(impl_); + SENF_ASSERT(impl_, "Ineral error: PIMPL pointer NULL ??"); return *impl_; }