Use std::make_shared

This commit is contained in:
Jonas Kvinge
2021-06-30 16:14:58 +02:00
parent ffa2489998
commit f3a8dde5f0
6 changed files with 7 additions and 7 deletions

View File

@@ -282,7 +282,7 @@ int main(int argc, char *argv[]) {
QNetworkProxyFactory::setApplicationProxyFactory(NetworkProxyFactory::Instance());
// Create the tray icon and OSD
std::shared_ptr<SystemTrayIcon> tray_icon(new SystemTrayIcon);
std::shared_ptr<SystemTrayIcon> tray_icon = std::make_shared<SystemTrayIcon>();
#if defined(Q_OS_MACOS)
OSDMac osd(tray_icon, &app);