chore: fix minor clang-tidy warnings (#6275)

This commit is contained in:
Charles Kerr
2023-11-21 09:02:03 -06:00
committed by GitHub
parent 65d8ae5357
commit 64d9d57363
114 changed files with 333 additions and 296 deletions

View File

@@ -25,7 +25,7 @@ extern wchar_t qAxModuleFilename[MAX_PATH]; // NOLINT
extern QString qAxInit(); // NOLINT
ComInteropHelper::ComInteropHelper()
: client_(new QAxObject(QStringLiteral("Transmission.QtClient")))
: client_{ new QAxObject{ QStringLiteral("Transmission.QtClient") } }
{
}
@@ -52,5 +52,5 @@ void ComInteropHelper::initialize()
void ComInteropHelper::registerObject(QObject* parent)
{
QAxFactory::startServer();
QAxFactory::registerActiveObject(new InteropObject(parent));
QAxFactory::registerActiveObject(new InteropObject{ parent });
}