From d8eaec5c03b5a961219f8d61c782b22c41849edc Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 3 Jan 2008 15:44:05 +0000 Subject: [PATCH] fix compilation warnings: unused parameters git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22347 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMath.h | 2 +- src/mathed/InsetMathChar.h | 2 +- src/mathed/InsetMathFrac.cpp | 2 +- src/mathed/InsetMathGrid.cpp | 2 +- src/mathed/InsetMathSymbol.h | 2 +- src/mathed/InsetMathUnknown.h | 2 +- src/mathed/MathData.h | 2 +- src/mathed/MathMacroTemplate.cpp | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mathed/InsetMath.h b/src/mathed/InsetMath.h index d805fd36e3..717eed9ef2 100644 --- a/src/mathed/InsetMath.h +++ b/src/mathed/InsetMath.h @@ -199,7 +199,7 @@ public: virtual bool allowedIn(mode_type mode) const { return mode == MATH_MODE; } /// superscript kerning - virtual int kerning(BufferView const * bv) const { return 0; } + virtual int kerning(BufferView const *) const { return 0; } }; /// diff --git a/src/mathed/InsetMathChar.h b/src/mathed/InsetMathChar.h index 1ff946bfd6..902f50e8fb 100644 --- a/src/mathed/InsetMathChar.h +++ b/src/mathed/InsetMathChar.h @@ -30,7 +30,7 @@ public: /// void drawT(TextPainter &, int x, int y) const; /// - int kerning(BufferView const * bv) const { return kerning_; } + int kerning(BufferView const *) const { return kerning_; } /// void write(WriteStream & os) const; diff --git a/src/mathed/InsetMathFrac.cpp b/src/mathed/InsetMathFrac.cpp index 915169becc..1ac2348230 100644 --- a/src/mathed/InsetMathFrac.cpp +++ b/src/mathed/InsetMathFrac.cpp @@ -248,7 +248,7 @@ void InsetMathFrac::metricsT(TextMetricsInfo const & mi, Dimension & dim) const } -void InsetMathFrac::drawT(TextPainter & pain, int x, int y) const +void InsetMathFrac::drawT(TextPainter & /*pain*/, int /*x*/, int /*y*/) const { // FIXME: BROKEN! /* diff --git a/src/mathed/InsetMathGrid.cpp b/src/mathed/InsetMathGrid.cpp index 214ca7e9fa..48d30efd80 100644 --- a/src/mathed/InsetMathGrid.cpp +++ b/src/mathed/InsetMathGrid.cpp @@ -625,7 +625,7 @@ void InsetMathGrid::metricsT(TextMetricsInfo const & mi, Dimension & dim) const } -void InsetMathGrid::drawT(TextPainter & pain, int x, int y) const +void InsetMathGrid::drawT(TextPainter & /*pain*/, int /*x*/, int /*y*/) const { // for (idx_type idx = 0; idx < nargs(); ++idx) // cell(idx).drawT(pain, x + cellXOffset(idx), y + cellYOffset(idx)); diff --git a/src/mathed/InsetMathSymbol.h b/src/mathed/InsetMathSymbol.h index d9b26edcfe..76651ef1cd 100644 --- a/src/mathed/InsetMathSymbol.h +++ b/src/mathed/InsetMathSymbol.h @@ -35,7 +35,7 @@ public: /// void draw(PainterInfo &, int x, int y) const; /// - int kerning(BufferView const * bv) const { return kerning_; } + int kerning(BufferView const *) const { return kerning_; } /// bool isRelOp() const; diff --git a/src/mathed/InsetMathUnknown.h b/src/mathed/InsetMathUnknown.h index 00eb81f0e6..60146a34c2 100644 --- a/src/mathed/InsetMathUnknown.h +++ b/src/mathed/InsetMathUnknown.h @@ -52,7 +52,7 @@ public: /// bool final() const; /// - int kerning(BufferView const * bv) const { return kerning_; } + int kerning(BufferView const *) const { return kerning_; } private: virtual Inset * clone() const; /// diff --git a/src/mathed/MathData.h b/src/mathed/MathData.h index 2e1b12cfcc..c235b2ce18 100644 --- a/src/mathed/MathData.h +++ b/src/mathed/MathData.h @@ -152,7 +152,7 @@ public: /// additional super/subscript shift int sshift() const { return sshift_; } /// superscript kerning - int kerning(BufferView const * bv) const { return kerning_; } + int kerning(BufferView const *) const { return kerning_; } /// void swap(MathData & ar) { base_type::swap(ar); } diff --git a/src/mathed/MathMacroTemplate.cpp b/src/mathed/MathMacroTemplate.cpp index f1d8e439e5..0189e6ff4a 100644 --- a/src/mathed/MathMacroTemplate.cpp +++ b/src/mathed/MathMacroTemplate.cpp @@ -966,7 +966,7 @@ void MathMacroTemplate::write(WriteStream & os) const } -void MathMacroTemplate::write(WriteStream & os, bool overwriteRedefinition) const +void MathMacroTemplate::write(WriteStream & os, bool /*overwriteRedefinition*/) const { // newcommand or renewcommand if (os.latex() && optionals_ > 1) -- 2.39.5