]> git.lyx.org Git - lyx.git/blobdiff - src/Author.cpp
Fix bug #4510: GuiInclude->Edit marks master as changed.
[lyx.git] / src / Author.cpp
index aa9c970a34d7ada28b95bdf8efe2e1fb3a3860dd..c2dc6eeb29bed6771c3689ec4b90de08becb4b24 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "support/lstrings.h"
 
-#include <boost/assert.hpp>
+#include "support/lassert.h"
 
 #include <istream>
 
@@ -30,14 +30,14 @@ bool operator==(Author const & l, Author const & r)
 }
 
 
-std::ostream & operator<<(std::ostream & os, Author const & a)
+ostream & operator<<(ostream & os, Author const & a)
 {
        // FIXME UNICODE
        os << "\"" << to_utf8(a.name()) << "\" " << to_utf8(a.email());
        return os;
 }
 
-std::istream & operator>>(std::istream & is, Author & a)
+istream & operator>>(istream & is, Author & a)
 {
        string s;
        getline(is, s);
@@ -71,7 +71,7 @@ int AuthorList::record(Author const & a)
 
 void AuthorList::record(int id, Author const & a)
 {
-       BOOST_ASSERT(unsigned(id) < authors_.size());
+       LASSERT(unsigned(id) < authors_.size(), /**/);
 
        authors_[id] = a;
 }
@@ -80,7 +80,7 @@ void AuthorList::record(int id, Author const & a)
 Author const & AuthorList::get(int id) const
 {
        Authors::const_iterator it(authors_.find(id));
-       BOOST_ASSERT(it != authors_.end());
+       LASSERT(it != authors_.end(), /**/);
        return it->second;
 }