]> git.lyx.org Git - lyx.git/blobdiff - src/changes.C
more cursor dispatch
[lyx.git] / src / changes.C
index c60357718b1ab17385541124168eec26bac65473..8da7e289f231323545237f07cba04e9c5ee83999 100644 (file)
@@ -1,26 +1,28 @@
 /**
  * \file changes.C
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * Record changes in a paragraph.
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS.
  *
- * \author John Levon <levon@movementarian.org>
+ * Record changes in a paragraph.
  */
 
 #include <config.h>
 
 #include "changes.h"
 #include "debug.h"
-#include "author.h"
 
-#include "support/LAssert.h"
-#include "support/LOstream.h"
+#include <boost/assert.hpp>
 
-using std::vector;
-using std::endl;
 using lyx::pos_type;
 
+using std::endl;
+using std::string;
+
+
 bool operator==(Change const & l, Change const & r)
 {
        return l.type == r.type && l.author == r.author
@@ -325,7 +327,7 @@ Change const Changes::lookupFull(pos_type pos) const
        }
 
        check();
-       lyx::Assert(0);
+       BOOST_ASSERT(false);
        return Change(Change::UNCHANGED);
 }
 
@@ -347,7 +349,7 @@ Change::Type Changes::lookup(pos_type pos) const
        }
 
        check();
-       lyx::Assert(0);
+       BOOST_ASSERT(0);
        return Change::UNCHANGED;
 }
 
@@ -485,7 +487,7 @@ void Changes::check() const
        if (lyxerr.debugging(Debug::CHANGES))
                lyxerr[Debug::CHANGES] << "End" << endl;
 
-       lyx::Assert(dont_assert);
+       BOOST_ASSERT(dont_assert);
 }