]> git.lyx.org Git - features.git/commitdiff
(try 2) fix a couple warnings after the number localization patch
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 12 Jul 2009 17:32:23 +0000 (17:32 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 12 Jul 2009 17:32:23 +0000 (17:32 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30517 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiGraphics.cpp
src/frontends/qt4/Validator.cpp

index 953f8e1247991e888185dc5d05c3e93a6b4b7ca4..2fcb79867103e6eab8e9fd30ece273f25e33df25 100644 (file)
@@ -469,14 +469,6 @@ void GuiGraphics::on_angle_textChanged(const QString & filename)
                                 (filename != "0"));
 }
 
-// returns the number of the string s in the vector v
-static int itemNumber(const vector<string> & v, string const & s)
-{
-       vector<string>::const_iterator cit =
-                   find(v.begin(), v.end(), s);
-       return (cit != v.end()) ? int(cit - v.begin()) : 0;
-}
-
 
 void GuiGraphics::paramsToDialog(InsetGraphicsParams const & igp)
 {
index d27f6b301f5c4a5459196b71de1ef1a6e02dee31..59655eb004485b2e3ebc5a833d09425aca538d6e 100644 (file)
@@ -41,7 +41,7 @@ LengthValidator::LengthValidator(QWidget * parent)
 QValidator::State LengthValidator::validate(QString & qtext, int &) const
 {
        bool ok;
-       double d = qtext.trimmed().toDouble(&ok);
+       qtext.trimmed().toDouble(&ok);
        if (qtext.isEmpty() || ok)
                return QValidator::Acceptable;