]> git.lyx.org Git - lyx.git/commitdiff
compile fix
authorLars Gullik Bjønnes <larsbj@gullik.org>
Tue, 20 Aug 2002 17:43:28 +0000 (17:43 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Tue, 20 Aug 2002 17:43:28 +0000 (17:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5041 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/buffer.h

index 6f03941eb89851284a460217a4fce50e17badba0..57b85811c0c54707f8af52468265bda73848a77e 100644 (file)
@@ -1,5 +1,8 @@
 2002-08-20  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
+       * buffer.h: declare oprator== and operator!= for
+       Buffer::inset_iterator
+
        * bufferlist.C (emergencyWrite): don't use fmt(...)
 
        * text3.C: add using std::endl
index 8aad387abe94167ebad97c37c6ad4d740827751b..d4bddd69381a350faaaaedaca15ed23b313ef062 100644 (file)
@@ -321,7 +321,7 @@ public:
        TexRow texrow;
        /// Buffer-wide counter array
        Counters & counters() const;
-       
+
 private:
        /// is save needed
        mutable bool lyx_clean;
@@ -357,7 +357,7 @@ private:
 
        /// The pointer is const although its contents may not be
        boost::scoped_ptr<Counters> const ctrs;
-       
+
 public:
        ///
        class inset_iterator {
@@ -369,15 +369,15 @@ public:
                typedef Inset & reference;
                typedef ParagraphList::iterator base_type;
 
-               ///
-               inset_iterator();
-               ///
-               inset_iterator(base_type p, base_type e);
-               ///
-               inset_iterator(base_type p, lyx::pos_type pos, base_type e);
+               ///
+               inset_iterator();
+               ///
+               inset_iterator(base_type p, base_type e);
+               ///
+               inset_iterator(base_type p, lyx::pos_type pos, base_type e);
 
-               /// prefix ++
-               inset_iterator & operator++();
+               /// prefix ++
+               inset_iterator & operator++();
                /// postfix ++
                inset_iterator operator++(int);
                ///
@@ -433,4 +433,9 @@ public:
        Inset * getInsetFromID(int id_arg) const;
 };
 
+bool operator==(Buffer::inset_iterator const & iter1,
+               Buffer::inset_iterator const & iter2);
+
+bool operator!=(Buffer::inset_iterator const & iter1,
+               Buffer::inset_iterator const & iter2);
 #endif