X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_iterator.h;h=d30bd4752998ba59c2d499f5935e6c45515d40d5;hb=254272868f1d891b9d0a778f871afb23cce84081;hp=03bd047870cb80e4a9884a530516dcd55cd7873d;hpb=a3f60ae91edbbbe66a7e2b941cb31a928a43c5b3;p=lyx.git diff --git a/src/mathed/math_iterator.h b/src/mathed/math_iterator.h index 03bd047870..d30bd47529 100644 --- a/src/mathed/math_iterator.h +++ b/src/mathed/math_iterator.h @@ -21,11 +21,11 @@ public: /// move on one step void operator++(); /// move on several steps - void jump(int n); - /// read access to top most item - MathCursorPos const & position() const; + void jump(MathInset::difference_type); + /// read access to top most item (inline after running gprof!) + MathCursorPos const & position() const { return cursor_.back(); } /// write access to top most item - MathCursorPos & position(); + MathCursorPos & position() { return cursor_.back(); } /// read access to full path MathCursor::cursor_type const & cursor() const; /// read access to top most inset @@ -37,11 +37,7 @@ public: /// read access to top most item MathArray const & cell() const; -private: - /// read access to top most item - MathXArray const & xcell() const; - /// write access to top most item - MathInset * nextInset() const; +private: /// own level down void push(MathInset *); /// own level up