summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Krupenko <krnekit@gmail.com>2017-03-23 20:04:50 (GMT)
committerNikita Krupenko <krnekit@gmail.com>2017-03-29 15:26:02 (GMT)
commite4038c6a3696973aca6db7f5442a8fb00a9b5bab (patch)
treec975c06e8025037c1a25385423154de0f575aa2f
parentbe428b21b777a04a1766adb880cb44e7b0b68e5a (diff)
downloadqtsvg-e4038c6a3696973aca6db7f5442a8fb00a9b5bab.tar.gz
Fix warnings for -no-feature-cssparserv5.9.0-beta2v5.9.0-beta1
Change-Id: Ifdb27c6fed26f95acff30f64259d6905e88c3a6f Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
-rw-r--r--src/svg/qsvghandler.cpp6
1 files 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: