]> git.lyx.org Git - lyx.git/commitdiff
Some trivial fixes of warning messages.
authorAngus Leeming <leeming@lyx.org>
Mon, 18 Mar 2002 16:32:52 +0000 (16:32 +0000)
committerAngus Leeming <leeming@lyx.org>
Mon, 18 Mar 2002 16:32:52 +0000 (16:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3768 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_biginset.C
src/mathed/math_biginset.h
src/mathed/math_hullinset.C
src/mathed/math_inset.C

index c9aa0fabbc1db02b36419d739b286558594a2e92..0689349782c0bc25003bdc173534619ec7889d54 100644 (file)
@@ -1,3 +1,10 @@
+2002-03-18  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * math_biginset.[Ch] (size): return size_type, not int.
+
+       * math_inset.C (metrics): parameter "mi" is never referenced. Removed.
+       * math_hullinset.C (metrics): ditto.
+       
 
 2002-03-12  André Pönitz <poenitz@gmx.net>
 
index 896310a9a19046e3ff2eac70978d80064c500529..285829361c680c4566e770751e56d79484335cfe 100644 (file)
@@ -22,7 +22,7 @@ MathInset * MathBigInset::clone() const
 }
 
 
-int MathBigInset::size() const
+MathBigInset::size_type MathBigInset::size() const
 {
        return name_.size() - 4;
 }
index a82cd31e0cb2cef06fdb073ba3f144d8bcdaf9a7..850b4b012d6563e32b5d7cedd552f29ca8ee842d 100644 (file)
@@ -30,7 +30,7 @@ public:
 
 private:
        ///
-       int size() const;
+       size_type size() const;
        ///
        double increase() const;
        
index b1d31998dd8b7f8d506d189c89afaca8aa7783ed..2c6bc57ef3c84a7ad5ce97352444b71a3fe39ba4 100644 (file)
@@ -199,7 +199,7 @@ void MathHullInset::draw(Painter & pain, int x, int y) const
 }
 
 
-void MathHullInset::metrics(TextMetricsInfo const & mi) const
+void MathHullInset::metrics(TextMetricsInfo const &) const
 {
        ascent_  = 1;
        descent_ = 0;
index 313c23f1b89c437118915cbd82b596224ae6315c..dfffb7b717f921a53e285a9b42adf59dfc2ff50e 100644 (file)
@@ -206,7 +206,7 @@ void MathInset::draw(Painter &, int, int) const
 }
 
 
-void MathInset::metrics(TextMetricsInfo const & mi) const
+void MathInset::metrics(TextMetricsInfo const &) const
 {
        lyxerr << "MathInset::metrics(Text) called directly!\n";
 }