We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad80955 commit 7e1d3e0Copy full SHA for 7e1d3e0
src/xmpp/xmpp-im/xmpp_vcard4.cpp
@@ -14,7 +14,7 @@ namespace {
14
#define INIT_D() \
15
do { \
16
if (!d) \
17
- d.reset(new VCardData); \
+ d = new VCardData; \
18
} while (0)
19
20
const QString VCARD_NAMESPACE = QLatin1String("urn:ietf:params:xml:ns:vcard-4.0");
@@ -656,7 +656,11 @@ VCard VCard::fromFile(const QString &filename)
656
return VCard();
657
658
QDomDocument doc;
659
+#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
660
+ if (!doc.setContent(&file, true)) {
661
+#else
662
if (!doc.setContent(&file, QDomDocument::ParseOption::UseNamespaceProcessing)) {
663
+#endif
664
file.close();
665
666
}
0 commit comments