Merge pull request #10302 from Chocobo1/uptr

Replace QScopedPointer with std::unqiue_ptr
This commit is contained in:
Mike Tzou 2019-03-02 12:26:14 +08:00 committed by GitHub
commit 0f1fc7be9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 18 additions and 16 deletions

View file

@ -31,13 +31,13 @@
#include <csignal>
#include <cstdlib>
#include <memory>
#if !defined Q_OS_WIN && !defined Q_OS_HAIKU
#include <unistd.h>
#endif
#include <QDebug>
#include <QScopedPointer>
#include <QThread>
#ifndef DISABLE_GUI
@ -117,7 +117,7 @@ int main(int argc, char *argv[])
try {
// Create Application
const QString appId = QLatin1String("qBittorrent-") + Utils::Misc::getUserIDString();
QScopedPointer<Application> app(new Application(appId, argc, argv));
std::unique_ptr<Application> app(new Application(appId, argc, argv));
const QBtCommandLineParameters params = app->commandLineArgs();