From 955925ef220919d217b07477b7dd58bee51d3798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Fri, 19 Sep 2008 09:41:21 +0000 Subject: [PATCH] * Validator.cpp: - get rid of unnecessary conversions. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@26452 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/Validator.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/Validator.cpp b/src/frontends/qt4/Validator.cpp index 69d82329bd..31b4e39f26 100644 --- a/src/frontends/qt4/Validator.cpp +++ b/src/frontends/qt4/Validator.cpp @@ -98,8 +98,7 @@ LengthAutoValidator::LengthAutoValidator(QWidget * parent) QValidator::State LengthAutoValidator::validate(QString & qtext, int & dummy) const { - string const text = fromqstr(qtext); - if (text == "auto") + if (qtext == "auto") return QValidator::Acceptable; return LengthValidator::validate(qtext, dummy); } @@ -123,8 +122,7 @@ DoubleAutoValidator::DoubleAutoValidator(double bottom, QValidator::State DoubleAutoValidator::validate(QString & input, int & pos) const { - string const text = fromqstr(input); - if (text == "auto") + if (input == "auto") return QValidator::Acceptable; return QDoubleValidator::validate(input, pos); }