Skip to content

Commit

Permalink
Merge pull request #23 from Mendeley/MD-22843-fix_build_newer_gcc
Browse files Browse the repository at this point in the history
Fixing building on gcc 5.4
  • Loading branch information
philliphounslow authored Aug 13, 2018
2 parents 145a7f0 + ee92a25 commit 33c4e77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<UpdateDialog> dialog(createUpdateDialog());
std::unique_ptr<UpdateDialog> dialog(createUpdateDialog());
dialog->setAutoClose(options.autoClose);
dialog->init(argc, argv);
installer.setObserver(dialog.get());
Expand Down

1 comment on commit 33c4e77

@ItaloMunozAutentia
Copy link

@ItaloMunozAutentia ItaloMunozAutentia commented on 33c4e77 Aug 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@philliphounslow : such change to std::unique_ptr will produce a compilation error:

‘unique_ptr’ is not a member of ‘std’

, but <memory> is included. The problem is the lack of "std=c++11" flag on src/CMakeLists.txt, line 8

Please see issue #24 for details

Please sign in to comment.