]> git.lyx.org Git - lyx.git/blobdiff - src/author.C
Make enter button work in GTK text dialog
[lyx.git] / src / author.C
index 41dbd65770f93d2307ad79eba76758add4216b37..a81b67325c66523f67643cb055bc69a644dedc0b 100644 (file)
 
 #include "author.h"
 
-#include "support/LAssert.h"
-#include "support/LIstream.h"
 #include "support/lstrings.h"
 
-using namespace lyx::support;
+#include <boost/assert.hpp>
+
+#include "support/std_istream.h"
+
+using lyx::support::token;
+using lyx::support::trim;
+
+using std::string;
+
 
 bool operator==(Author const & l, Author const & r)
 {
@@ -63,7 +69,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 +78,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;
 }