(try 2) fix a couple warnings after the number localization patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30517 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-07-12 17:32:23 +00:00
parent c355edfb6d
commit 91d7e3b191
2 changed files with 1 additions and 9 deletions

View 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)
{

View 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;