X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fauthor.C;h=60817affe0da43622d627908f96aa2feb86b990d;hb=095625dc3cd0542d13d8cc62362aa71c896eb3e0;hp=41dbd65770f93d2307ad79eba76758add4216b37;hpb=91de22ef340abbf1e9ba7d422bcd9024fa90d63f;p=lyx.git diff --git a/src/author.C b/src/author.C index 41dbd65770..60817affe0 100644 --- a/src/author.C +++ b/src/author.C @@ -12,11 +12,20 @@ #include "author.h" -#include "support/LAssert.h" -#include "support/LIstream.h" #include "support/lstrings.h" -using namespace lyx::support; +#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) { @@ -63,7 +72,7 @@ int AuthorList::record(Author const & a) void AuthorList::record(int id, Author const & a) { - Assert(unsigned(id) < authors_.size()); + BOOST_ASSERT(unsigned(id) < authors_.size()); authors_[id] = a; } @@ -72,7 +81,7 @@ void AuthorList::record(int id, Author const & a) Author const & AuthorList::get(int id) { Authors::const_iterator it(authors_.find(id)); - Assert(it != authors_.end()); + BOOST_ASSERT(it != authors_.end()); return it->second; } @@ -87,3 +96,6 @@ AuthorList::Authors::const_iterator AuthorList::end() const { return authors_.end(); } + + +} // namespace lyx