diff options
| author | Linus Jahn <lnj@kaidan.im> | 2021-08-01 14:08:09 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2021-08-01 14:18:30 +0200 |
| commit | 68bcfe6531bec574f31a07a31cd385c8f77ac756 (patch) | |
| tree | 6f3851af86eb8ebab0bd9de0c0bb7394ddee393d /src/base/QXmppDataForm.cpp | |
| parent | c672fdcadce13f0a2180576d89c8144818ccdbd1 (diff) | |
Use qMakePair() again to fix compile errors
With some configurations QPair(a, b) (without template parameters)
causes errors, but it works with qMakePair().
Fixes #360.
Diffstat (limited to 'src/base/QXmppDataForm.cpp')
| -rw-r--r-- | src/base/QXmppDataForm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/QXmppDataForm.cpp b/src/base/QXmppDataForm.cpp index a6c5cca9..74c176c5 100644 --- a/src/base/QXmppDataForm.cpp +++ b/src/base/QXmppDataForm.cpp @@ -880,7 +880,7 @@ void QXmppDataForm::parse(const QDomElement &element) for (auto element = fieldElement.firstChildElement("option"); !element.isNull(); element = element.nextSiblingElement("option")) { - options << QPair(element.attribute("label"), element.firstChildElement("value").text()); + options << qMakePair(element.attribute("label"), element.firstChildElement("value").text()); } field.setOptions(options); } |
