mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 23:12:16 +02:00
Replace deprecated .toSet()
This commit is contained in:
parent
aefb6860e6
commit
a7f6fed937
2 changed files with 3 additions and 3 deletions
|
@ -237,7 +237,7 @@ void AvatarDoctor::startDiagnosing() {
|
|||
jointValues << jointVariant.toString();
|
||||
}
|
||||
|
||||
const auto& uniqueJointValues = jointValues.toSet();
|
||||
const auto& uniqueJointValues = QSet<QString>(jointValues.begin(), jointValues.end());
|
||||
for (const auto& jointName: uniqueJointValues) {
|
||||
if (jointValues.count(jointName) > 1) {
|
||||
addError(tr("%1 is mapped multiple times.").arg(jointName), "mapped-multiple-times");
|
||||
|
|
|
@ -24,11 +24,11 @@
|
|||
#include "ScriptEngines.h"
|
||||
#include "ScriptCache.h"
|
||||
|
||||
BatchLoader::BatchLoader(const QList<QUrl>& urls)
|
||||
BatchLoader::BatchLoader(const QList<QUrl>& urls)
|
||||
: QObject(),
|
||||
_started(false),
|
||||
_finished(false),
|
||||
_urls(urls.toSet()),
|
||||
_urls(QSet<QUrl>(urls.begin(), urls.end())),
|
||||
_data(),
|
||||
_status() {
|
||||
qRegisterMetaType<QMap<QUrl, QString>>("QMap<QUrl, QString>");
|
||||
|
|
Loading…
Reference in a new issue