QmlDesigner: Hopefully fix strange MSVC fail

Change-Id: I9677a85269a7496d557e7e3e9127604e48f668a4
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
Marco Bubke
2023-09-04 18:02:08 +02:00
parent b8f97713c5
commit d04f08e320

View File

@@ -275,7 +275,7 @@ void DatabaseBackend::checkCanOpenDatabase(Utils::SmallStringView databaseFilePa
if (databaseFilePath.isEmpty()) if (databaseFilePath.isEmpty())
throw DatabaseFilePathIsEmpty("SqliteDatabaseBackend::SqliteDatabaseBackend: database cannot be opened because the file path is empty!"); throw DatabaseFilePathIsEmpty("SqliteDatabaseBackend::SqliteDatabaseBackend: database cannot be opened because the file path is empty!");
if (!QFileInfo::exists(QFileInfo(QString(databaseFilePath)).path())) if (!QFileInfo::exists(QFileInfo(QString{databaseFilePath}).path()))
throw WrongFilePath(Utils::SmallString(databaseFilePath)); throw WrongFilePath(Utils::SmallString(databaseFilePath));
if (databaseIsOpen()) if (databaseIsOpen())