X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FCursorSlice.cpp;h=105df9685b5f68267bb239b14c6214da4339496a;hb=b198a36a363bb6a084407d476942d68ef5fb5e86;hp=76049a05419e2f77bd2f019918e984a8d2b57940;hpb=75bfed55079cab6b73fbea6ce4ae3f10d1af3b91;p=lyx.git diff --git a/src/CursorSlice.cpp b/src/CursorSlice.cpp index 76049a0541..105df9685b 100644 --- a/src/CursorSlice.cpp +++ b/src/CursorSlice.cpp @@ -17,16 +17,14 @@ #include "Text.h" #include "Paragraph.h" +#include "ParagraphList.h" #include "support/debug.h" -#include "insets/Inset.h" - #include "mathed/InsetMath.h" -#include "mathed/MathMacro.h" +#include "mathed/InsetMathMacro.h" +#include "mathed/MathData.h" -#include "support/ExceptionMessage.h" -#include "support/gettext.h" #include "support/lassert.h" #include @@ -37,7 +35,7 @@ namespace lyx { CursorSlice::CursorSlice() - : inset_(0), idx_(0), pit_(0), pos_(0) + : inset_(nullptr), idx_(0), pit_(0), pos_(0) {} @@ -78,14 +76,14 @@ pit_type CursorSlice::lastpit() const } -CursorSlice::row_type CursorSlice::row() const +row_type CursorSlice::row() const { LASSERT(inset_, return 0); return inset_->row(idx_); } -CursorSlice::col_type CursorSlice::col() const +col_type CursorSlice::col() const { LASSERT(inset_, return 0); return inset_->col(idx_);