From: André Pönitz Date: Fri, 25 Jul 2003 19:39:01 +0000 (+0000) Subject: fix getLabelList for mathed X-Git-Tag: 1.6.10~16472 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ec004b4318f55bdd4838f218ff5cb1e566bd6d27;p=features.git fix getLabelList for mathed git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7359 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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; ///