From: Angus Leeming Date: Mon, 18 Mar 2002 16:32:52 +0000 (+0000) Subject: Some trivial fixes of warning messages. X-Git-Tag: 1.6.10~19632 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=741f5277842ab9cf2a0b256bc24ea56c16c01e91;p=lyx.git Some trivial fixes of warning messages. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3768 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index c9aa0fabbc..0689349782 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,10 @@ +2002-03-18 Angus Leeming + + * 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 diff --git a/src/mathed/math_biginset.C b/src/mathed/math_biginset.C index 896310a9a1..285829361c 100644 --- a/src/mathed/math_biginset.C +++ b/src/mathed/math_biginset.C @@ -22,7 +22,7 @@ MathInset * MathBigInset::clone() const } -int MathBigInset::size() const +MathBigInset::size_type MathBigInset::size() const { return name_.size() - 4; } diff --git a/src/mathed/math_biginset.h b/src/mathed/math_biginset.h index a82cd31e0c..850b4b012d 100644 --- a/src/mathed/math_biginset.h +++ b/src/mathed/math_biginset.h @@ -30,7 +30,7 @@ public: private: /// - int size() const; + size_type size() const; /// double increase() const; diff --git a/src/mathed/math_hullinset.C b/src/mathed/math_hullinset.C index b1d31998dd..2c6bc57ef3 100644 --- a/src/mathed/math_hullinset.C +++ b/src/mathed/math_hullinset.C @@ -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; diff --git a/src/mathed/math_inset.C b/src/mathed/math_inset.C index 313c23f1b8..dfffb7b717 100644 --- a/src/mathed/math_inset.C +++ b/src/mathed/math_inset.C @@ -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"; }