QmlDesigner: Let ~LibraryInitializer() throw exception

Because LibraryInitializer has no state it should be fine if it is used
like intended. The exception is anyway fatal.

Change-Id: I397e5b03e63d69f1468b46a8f333522629f1d882
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2023-04-03 13:37:14 +02:00
parent df6d690304
commit 49c85bbf70
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ LibraryInitializer::LibraryInitializer()
DatabaseBackend::initializeSqliteLibrary();
}
LibraryInitializer::~LibraryInitializer()
LibraryInitializer::~LibraryInitializer() noexcept(false)
{
DatabaseBackend::shutdownSqliteLibrary();
}

View File

@@ -14,7 +14,7 @@ public:
private:
LibraryInitializer();
~LibraryInitializer();
~LibraryInitializer() noexcept(false);
};
} // namespace Sqlite