From c9dffa27a2d3e1cab34b9053ddbdb5633130f799 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 21 Apr 2007 22:28:21 +0000 Subject: [PATCH] * InsetMathNest::cell(): inlined because of profile. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17895 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathNest.C | 12 ------------ src/mathed/InsetMathNest.h | 10 ++++++---- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/mathed/InsetMathNest.C b/src/mathed/InsetMathNest.C index 8701fad0c9..b42a55c840 100644 --- a/src/mathed/InsetMathNest.C +++ b/src/mathed/InsetMathNest.C @@ -86,18 +86,6 @@ InsetMath::idx_type InsetMathNest::nargs() const } -MathArray & InsetMathNest::cell(idx_type i) -{ - return cells_[i]; -} - - -MathArray const & InsetMathNest::cell(idx_type i) const -{ - return cells_[i]; -} - - void InsetMathNest::cursorPos(BufferView const & bv, CursorSlice const & sl, bool /*boundary*/, int & x, int & y) const diff --git a/src/mathed/InsetMathNest.h b/src/mathed/InsetMathNest.h index 604b3b41e5..224cb5dd03 100644 --- a/src/mathed/InsetMathNest.h +++ b/src/mathed/InsetMathNest.h @@ -74,10 +74,12 @@ public: /// get notification when the cursor leaves this inset bool notifyCursorLeaves(LCursor & cur); - /// direct access to the cell - MathArray & cell(idx_type); - /// direct access to the cell - MathArray const & cell(idx_type) const; + /// direct access to the cell. + /// inlined because shows in profile. + //@{ + MathArray & cell(idx_type i) { return cells_[i]; } + MathArray const & cell(idx_type i) const { return cells_[i]; } + //@} /// can we move into this cell (see macroarg.h) bool isActive() const; -- 2.39.2