diff --git a/src/main.cpp b/src/main.cpp index 3598f85..c3f09ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -150,7 +150,7 @@ int main(int argc, char** argv) if (options.mode == UpdateInstaller::Main) { LOG(Info, "Showing updater UI - auto close? " + intToStr(options.autoClose)); - std::auto_ptr dialog(createUpdateDialog()); + std::unique_ptr dialog(createUpdateDialog()); dialog->setAutoClose(options.autoClose); dialog->init(argc, argv); installer.setObserver(dialog.get());