From ec004b4318f55bdd4838f218ff5cb1e566bd6d27 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 25 Jul 2003 19:39:01 +0000 Subject: [PATCH] fix getLabelList for mathed git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7359 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/formula.C | 4 +--- src/mathed/formula.h | 2 +- src/mathed/formulabase.C | 6 ------ src/mathed/formulabase.h | 2 -- 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/mathed/formula.C b/src/mathed/formula.C index 2479919a6f..f83a7041ef 100644 --- a/src/mathed/formula.C +++ b/src/mathed/formula.C @@ -245,11 +245,9 @@ void InsetFormula::draw(PainterInfo & pi, int x, int y) const } -vector const InsetFormula::getLabelList() const +void InsetFormula::getLabelList(std::vector & res) const { - vector res; par()->getLabelList(res); - return res; } diff --git a/src/mathed/formula.h b/src/mathed/formula.h index 56cd7a88dc..0fa7779353 100644 --- a/src/mathed/formula.h +++ b/src/mathed/formula.h @@ -62,7 +62,7 @@ public: /// bool insetAllowed(Inset::Code code) const; /// - std::vector const getLabelList() const; + void getLabelList(std::vector &) const; /// MathAtom const & par() const { return par_; } /// diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index ce1e3b289b..ec59ceb4ed 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -211,12 +211,6 @@ void InsetFormulaBase::toggleInsetSelection(BufferView * bv) } -vector const InsetFormulaBase::getLabelList() const -{ - return vector(); -} - - dispatch_result InsetFormulaBase::lfunMouseRelease(FuncRequest const & cmd) { if (!mathcursor) diff --git a/src/mathed/formulabase.h b/src/mathed/formulabase.h index 988b607643..a3e490ada2 100644 --- a/src/mathed/formulabase.h +++ b/src/mathed/formulabase.h @@ -63,8 +63,6 @@ public: /// To allow transparent use of math editing functions //virtual void status(FuncRequest const &); - /// - virtual std::vector const getLabelList() const; /// virtual MathAtom const & par() const = 0; /// -- 2.39.2