Avoid warning about unqualified std cast

This commit is contained in:
Martchus 2022-11-04 16:51:01 +01:00
parent 693484d3aa
commit 256e90a0cb
6 changed files with 8 additions and 8 deletions

View File

@ -441,7 +441,7 @@ void Application::findRelevantDirsAndDevs(OperationType operationType)
const QString dirIdentifier(argToQString(dirArg.values(i).front()));
const RelevantDir relevantDir(findDirectory(dirIdentifier));
if (relevantDir.dirObj) {
m_relevantDirs.emplace_back(move(relevantDir));
m_relevantDirs.emplace_back(std::move(relevantDir));
}
}
}

View File

@ -582,7 +582,7 @@ SyncthingDir *SyncthingConnection::addDirInfo(std::vector<SyncthingDir> &dirs, c
}
int row;
if (auto *const existingDirInfo = findDirInfo(dirId, row)) {
dirs.emplace_back(move(*existingDirInfo));
dirs.emplace_back(std::move(*existingDirInfo));
} else {
dirs.emplace_back(dirId);
}
@ -685,7 +685,7 @@ SyncthingDev *SyncthingConnection::addDevInfo(std::vector<SyncthingDev> &devs, c
}
int row;
if (SyncthingDev *const existingDevInfo = findDevInfo(devId, row)) {
devs.emplace_back(move(*existingDevInfo));
devs.emplace_back(std::move(*existingDevInfo));
} else {
devs.emplace_back(devId);
}

View File

@ -1557,7 +1557,7 @@ void SyncthingConnection::readChangeEvent(DateTime eventTime, const QString &eve
change.modifiedBy = eventData.value(QLatin1String("modifiedBy")).toString();
change.path = eventData.value(QLatin1String("path")).toString();
if (m_recordFileChanges) {
dirInfo->recentChanges.emplace_back(move(change));
dirInfo->recentChanges.emplace_back(std::move(change));
emit dirStatusChanged(*dirInfo, index);
emit fileChanged(*dirInfo, index, dirInfo->recentChanges.back());
} else {

View File

@ -141,7 +141,7 @@ QVariant SyncthingRecentChangesModel::data(const QModelIndex &index, int role) c
case ExtendedAction: {
auto extendedAction = change.fileChange.action;
extendedAction[0] = extendedAction[0].toUpper();
return QVariant(move(extendedAction));
return QVariant(std::move(extendedAction));
}
case ItemType:
return change.fileChange.type;

View File

@ -57,7 +57,7 @@ void SyncthingLauncher::setEmittingOutput(bool emittingOutput)
}
QByteArray data;
m_outputBuffer.swap(data);
emit outputAvailable(move(data));
emit outputAvailable(std::move(data));
}
/*!
@ -241,7 +241,7 @@ void SyncthingLauncher::handleLoggingCallback(LibSyncthing::LogLevel level, cons
messageData.append(message, static_cast<int>(messageSize));
messageData.append('\n');
handleOutputAvailable(move(messageData));
handleOutputAvailable(std::move(messageData));
}
#endif

View File

@ -277,7 +277,7 @@ void ConnectionOptionPage::removeSelectedConfig()
}
if (index == 0) {
m_primarySettings = move(m_secondarySettings.front());
m_primarySettings = std::move(m_secondarySettings.front());
m_secondarySettings.erase(m_secondarySettings.begin());
} else {
m_secondarySettings.erase(m_secondarySettings.begin() + (index - 1));