Skip to content

Commit e2c5140

Browse files
committed
Fix indirect construction of QFile
1 parent 818ce6a commit e2c5140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/backend/src/command/c-play.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ TExec* CPlay::createRuffleTask(const QString& name, const QString& originalParam
406406
#endif
407407
auto& fp = mCore.fpInstall();
408408
static QFileInfo ruffle = [&]{
409-
QFile file = mCore.fpInstall().dir().absoluteFilePath(u"Data/Ruffle/standalone/latest/"_s + RUFFLE_EXE);
409+
QFile file(mCore.fpInstall().dir().absoluteFilePath(u"Data/Ruffle/standalone/latest/"_s + RUFFLE_EXE));
410410
auto exec = QFile::ExeOwner | QFile::ExeGroup | QFile::ExeOther;
411411
file.setPermissions(file.permissions() | exec);
412412
return QFileInfo(file);

0 commit comments

Comments
 (0)