X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fauthor.C;h=60817affe0da43622d627908f96aa2feb86b990d;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=45b36b4f150e37c64e7657946c1ee06157346c8c;hpb=f36772d66aef94df8a0ddd8948e17ea6aceb676f;p=lyx.git diff --git a/src/author.C b/src/author.C index 45b36b4f15..60817affe0 100644 --- a/src/author.C +++ b/src/author.C @@ -5,18 +5,28 @@ * * \author John Levon * - * Full author contact details are available in file CREDITS + * Full author contact details are available in file CREDITS. */ #include #include "author.h" -#include "support/LAssert.h" -#include "support/LOstream.h" -#include "support/LIstream.h" #include "support/lstrings.h" +#include + +#include "support/std_istream.h" + + +namespace lyx { + +using support::token; +using support::trim; + +using std::string; + + bool operator==(Author const & l, Author const & r) { return l.name() == r.name() && l.email() == r.email(); @@ -62,7 +72,7 @@ int AuthorList::record(Author const & a) void AuthorList::record(int id, Author const & a) { - lyx::Assert(unsigned(id) < authors_.size()); + BOOST_ASSERT(unsigned(id) < authors_.size()); authors_[id] = a; } @@ -71,7 +81,7 @@ void AuthorList::record(int id, Author const & a) Author const & AuthorList::get(int id) { Authors::const_iterator it(authors_.find(id)); - lyx::Assert(it != authors_.end()); + BOOST_ASSERT(it != authors_.end()); return it->second; } @@ -86,3 +96,6 @@ AuthorList::Authors::const_iterator AuthorList::end() const { return authors_.end(); } + + +} // namespace lyx