]> git.lyx.org Git - lyx.git/blobdiff - src/InsetIterator.cpp
Less expensive OP first as this might be called often.
[lyx.git] / src / InsetIterator.cpp
index 155f60f26ab45fa438f326ae8fc73b7aaa11c919..7ac238bd1b19ef33d9f4e2300f22418d5c3f9857 100644 (file)
@@ -4,7 +4,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Alfredo Braunstein
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -20,12 +20,12 @@ namespace lyx {
 
 
 InsetIterator::InsetIterator(Inset & inset)
-       : DocIterator(inset)
+       : DocIterator(&inset.buffer(), &inset)
 {
 }
 
 
-InsetIterator inset_iterator_begin(Inset & inset)
+InsetIterator begin(Inset & inset)
 {
        InsetIterator it = InsetIterator(inset);
        it.forwardInset();
@@ -33,7 +33,7 @@ InsetIterator inset_iterator_begin(Inset & inset)
 }
 
 
-InsetIterator inset_iterator_end(Inset & inset)
+InsetIterator end(Inset & inset)
 {
        return InsetIterator(inset);
 }