From e4038c6a3696973aca6db7f5442a8fb00a9b5bab Mon Sep 17 00:00:00 2001 From: Nikita Krupenko Date: Thu, 23 Mar 2017 22:04:50 +0200 Subject: Fix warnings for -no-feature-cssparser Change-Id: Ifdb27c6fed26f95acff30f64259d6905e88c3a6f Reviewed-by: Paul Olav Tvete --- src/svg/qsvghandler.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp index df654e1..c40091f 100644 --- a/src/svg/qsvghandler.cpp +++ b/src/svg/qsvghandler.cpp @@ -322,6 +322,8 @@ QSvgAttributes::QSvgAttributes(const QXmlStreamAttributes &xmlAttributes, QSvgHa } } } +#else + Q_UNUSED(handler); #endif // QT_NO_CSSPARSER for (int i = 0; i < xmlAttributes.count(); ++i) { @@ -430,6 +432,8 @@ QSvgAttributes::QSvgAttributes(const QXmlStreamAttributes &xmlAttributes, QSvgHa } +#ifndef QT_NO_CSSPARSER + static const char * QSvgStyleSelector_nodeString[] = { "svg", "g", @@ -452,8 +456,6 @@ static const char * QSvgStyleSelector_nodeString[] = { "video" }; -#ifndef QT_NO_CSSPARSER - class QSvgStyleSelector : public QCss::StyleSelector { public: -- cgit v1.2.1