From 4dcd5ae1e27252755a51dec139269bc4f998adb4 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 26 Jul 2012 09:53:03 +0200 Subject: [PATCH] Remove obsolete Q_WS_QWS. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I41e1440ff64eafc8729701aea11292f12e3bbe8c Reviewed-by: Samuel Rødal --- src/quick/util/qquicksvgparser.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/quick/util/qquicksvgparser.cpp b/src/quick/util/qquicksvgparser.cpp index 6a1b743..9acec4c 100644 --- a/src/quick/util/qquicksvgparser.cpp +++ b/src/quick/util/qquicksvgparser.cpp @@ -129,15 +129,8 @@ static qreal toDouble(const QChar *&str) if (neg) val = -val; } else { -#if defined(Q_WS_QWS) && !defined(Q_OS_VXWORKS) - if(sizeof(qreal) == sizeof(float)) - val = strtof(temp, 0); - else -#endif - { - bool ok = false; - val = qstrtod(temp, 0, &ok); - } + bool ok = false; + val = qstrtod(temp, 0, &ok); } return val; -- 2.7.4