mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
Fix use-std::make_unique warning
Xref: https://sonarcloud.io/project/issues?id=transmission_transmission&issues=AX0WPk0twxvzFbF6whWC&open=AX0WPk0twxvzFbF6whWC
This commit is contained in:
parent
ade738d465
commit
463a742f34
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ std::unique_ptr<MainWindow> MainWindow::create(
|
|||
Glib::RefPtr<Gio::ActionGroup> const& actions,
|
||||
Glib::RefPtr<Session> const& core)
|
||||
{
|
||||
return std::unique_ptr<MainWindow>(new MainWindow(app, actions, core));
|
||||
return std::make_unique<MainWindow>(app, actions, core);
|
||||
}
|
||||
|
||||
MainWindow::MainWindow(Gtk::Application& app, Glib::RefPtr<Gio::ActionGroup> const& actions, Glib::RefPtr<Session> const& core)
|
||||
|
|
Loading…
Reference in a new issue