]> git.lyx.org Git - features.git/commitdiff
fix compilation warnings: unused parameters
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 3 Jan 2008 15:44:05 +0000 (15:44 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 3 Jan 2008 15:44:05 +0000 (15:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22347 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMath.h
src/mathed/InsetMathChar.h
src/mathed/InsetMathFrac.cpp
src/mathed/InsetMathGrid.cpp
src/mathed/InsetMathSymbol.h
src/mathed/InsetMathUnknown.h
src/mathed/MathData.h
src/mathed/MathMacroTemplate.cpp

index d805fd36e3c4fb51df686ca2c8dedbb92c5e990c..717eed9ef2e9d6335d8bf9d1786285367b3b4fb1 100644 (file)
@@ -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; }
 };
 
 ///
index 1ff946bfd6c2fb430c10849c8eb04be08e84340b..902f50e8fbe80ec4525ee22a64409bdd69fa1668 100644 (file)
@@ -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;
index 915169becc67602f4d03084a090983a8e60bf98b..1ac234823036257e0ec9e6947d6f5b0553eb74e6 100644 (file)
@@ -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!
        /*
index 214ca7e9faea33619ae66418642a7dd77216e606..48d30efd80eb043940df594eea832c4528d3d5c6 100644 (file)
@@ -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));
index d9b26edcfe759627744696f89a37949719bb0d56..76651ef1cd64396384d0a579726c3eb7a6321967 100644 (file)
@@ -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;
index 00eb81f0e69599858a149300965b041ebe5a4495..60146a34c22a30b2b4a3ff0e189031153e1a0798 100644 (file)
@@ -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;
        ///
index 2e1b12cfccbed9e47f93b61f7c94f3c17b8fec51..c235b2ce18e67d84bc5f29a40ea3e9f55b3fe64b 100644 (file)
@@ -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); }
 
index f1d8e439e5cc13c8dfdd2c62ae783b9f2fac313f..0189e6ff4aa71ca9391a9a2d4b89aa5117cc9db1 100644 (file)
@@ -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)