Fixes for CLang-specific warnings.

This commit is contained in:
OBattler
2025-08-24 01:11:54 +02:00
parent d7a714185c
commit 9a7d63650b
5 changed files with 8 additions and 8 deletions

View File

@@ -147,7 +147,7 @@ VMManagerMain::VMManagerMain(QWidget *parent) :
connect(buttonBox, &QDialogButtonBox::accepted, &dialog, &QDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, &dialog, &QDialog::reject);
layout->addWidget(buttonBox);
connect(edit, &QLineEdit::textChanged, this, [this, errLabel, buttonBox] (const QString& text) {
connect(edit, &QLineEdit::textChanged, this, [errLabel, buttonBox] (const QString& text) {
bool isSpaceOnly = true;
#ifdef Q_OS_WINDOWS
const char illegalChars[] = "<>:\"|?*\\/";
@@ -218,7 +218,7 @@ illegal_chars:
QString srcPath = selected_sysconfig->config_dir;
QString dstPath = vmDir;
std::thread copyThread([this, &finished, srcPath, dstPath, &errCode] {
std::thread copyThread([&finished, srcPath, dstPath, &errCode] {
errCode = copyPath(srcPath, dstPath, true);
finished = true;
});
@@ -285,7 +285,7 @@ illegal_chars:
QAction deleteAction(tr("&Delete"));
contextMenu.addAction(&deleteAction);
connect(&deleteAction, &QAction::triggered, [this, parent] {
connect(&deleteAction, &QAction::triggered, [this] {
deleteSystem(selected_sysconfig);
});
deleteAction.setEnabled(selected_sysconfig->process->state() == QProcess::NotRunning);