From ebaded261aa3d1ab7899105bc87fd58a361dbb3f Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 20 Apr 2004 08:44:30 +0000 Subject: [PATCH] Squash compiler warning about unused var. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8681 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 7 ++++++- src/mathed/math_nestinset.C | 10 +++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index c8b45f1d74..fb5a0ddcd0 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,8 @@ +2004-04-20 Angus Leeming + + * math_nestinset.C (notifyCursorLeaves): squash warning about + unused var. + 2004-04-20 Angus Leeming * math_hullinset.C (addPreview): Add the preview only if @@ -20,7 +25,7 @@ could be replaced by the compiler-generated defaults if preview_ was stored as a RenderPreview var rather than a scoped pointer. (metrics, draw): use the preview renderer if previewing is turned on. - + 2004-04-05 Angus Leeming * math_scriptinset.C (up, down, notifyCursorLeaves): ensure that diff --git a/src/mathed/math_nestinset.C b/src/mathed/math_nestinset.C index 79c529bbc3..664fb09f04 100644 --- a/src/mathed/math_nestinset.C +++ b/src/mathed/math_nestinset.C @@ -205,7 +205,7 @@ void MathNestInset::drawSelection(PainterInfo & pi, int, int) const CursorSlice s1 = cur.selBegin(); CursorSlice s2 = cur.selEnd(); //lyxerr << "MathNestInset::drawing selection: " - // << " s1: " << s1 << " s2: " << s2 << endl; + // << " s1: " << s1 << " s2: " << s2 << endl; if (s1.idx() == s2.idx()) { MathArray const & c = cell(s1.idx()); int x1 = c.xo() + c.pos2x(s1.pos()); @@ -215,7 +215,7 @@ void MathNestInset::drawSelection(PainterInfo & pi, int, int) const pi.pain.fillRectangle(x1, y1, x2 - x1, y2 - y1, LColor::selection); //lyxerr << "MathNestInset::drawing selection 3: " // << " x1: " << x1 << " x2: " << x2 - // << " y1: " << y1 << " y2: " << y2 << endl; + // << " y1: " << y1 << " y2: " << y2 << endl; } else { for (idx_type i = 0; i < nargs(); ++i) { if (idxBetween(i, s1.idx(), s2.idx())) { @@ -313,7 +313,7 @@ int MathNestInset::latex(Buffer const &, std::ostream & os, } -void MathNestInset::notifyCursorLeaves(LCursor & cur) +void MathNestInset::notifyCursorLeaves(LCursor & /*cur*/) { #warning look here #if 0 @@ -381,7 +381,7 @@ void MathNestInset::priv_dispatch(LCursor & cur, FuncRequest & cmd) switch (cmd.action) { case LFUN_PASTE: { - recordUndo(cur); + recordUndo(cur); cur.message(_("Paste")); replaceSelection(cur); size_t n = 0; @@ -800,7 +800,7 @@ bool MathNestInset::getStatus(LCursor & /*cur*/, FuncRequest const & cmd, FuncStatus & flag) const { // the font related toggles - //string tc = "mathnormal"; + //string tc = "mathnormal"; bool ret = true; switch (cmd.action) { #if 0