python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / grantlee5 / patches / fix-gcc7-qt580-qcwarning.patch
blob68c8246f8e35e81ed074d259bfc17a20458dad17
1 --- templates/lib/customtyperegistry.cpp 2016-04-19 08:33:17.000000000 +0200
2 +++ templates/lib/customtyperegistry.cpp 2017-12-18 17:59:07.377687292 +0100
3 @@ -57,16 +57,16 @@
6 if (!types.contains(id)) {
7 - qCWarning(GRANTLEE_CUSTOMTYPE) << "Don't know how to handle metatype"
8 - << QMetaType::typeName(id);
9 + qCWarning(GRANTLEE_CUSTOMTYPE, "Don't know how to handle metatype %s",
10 + QMetaType::typeName(id));
11 // :TODO: Print out error message
12 return QVariant();
15 const CustomTypeInfo &info = types[id];
16 if (!info.lookupFunction) {
17 - qCWarning(GRANTLEE_CUSTOMTYPE) << "No lookup function for metatype"
18 - << QMetaType::typeName(id);
19 + qCWarning(GRANTLEE_CUSTOMTYPE, "No lookup function for metatype %s",
20 + QMetaType::typeName(id));
21 lf = 0;
22 // :TODO: Print out error message
23 return QVariant();
24 --- templates/lib/template.cpp 2016-04-19 08:33:17.000000000 +0200
25 +++ templates/lib/template.cpp 2017-12-18 18:03:59.522681407 +0100
26 @@ -66,7 +66,7 @@
27 d->m_nodeList = d->compileString(templateString);
28 d->setError(NoError, QString());
29 } catch (Grantlee::Exception &e) {
30 - qCWarning(GRANTLEE_TEMPLATE) << e.what();
31 + qCWarning(GRANTLEE_TEMPLATE, "%s", qPrintable(e.what()));
32 d->setError(e.errorCode(), e.what());
35 @@ -92,7 +92,7 @@
36 d->m_nodeList.render(stream, c);
37 d->setError(NoError, QString());
38 } catch (Grantlee::Exception &e) {
39 - qCWarning(GRANTLEE_TEMPLATE) << e.what();
40 + qCWarning(GRANTLEE_TEMPLATE, "%s", qPrintable(e.what()));
41 d->setError(e.errorCode(), e.what());
44 --- templates/lib/qtlocalizer.cpp 2016-04-19 08:33:17.000000000 +0200
45 +++ templates/lib/qtlocalizer.cpp 2017-12-18 18:04:50.501680381 +0100
46 @@ -67,7 +67,7 @@
48 Q_ASSERT(!m_locales.isEmpty());
49 if (m_locales.isEmpty()) {
50 - qCWarning(GRANTLEE_LOCALIZER) << "Invalid Locale";
51 + qCWarning(GRANTLEE_LOCALIZER, "Invalid Locale");
52 return QLocale();
54 return m_locales.last()->locale;