projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use std::make_unique
[quassel.git]
/
src
/
qtui
/
qtuiapplication.cpp
diff --git
a/src/qtui/qtuiapplication.cpp
b/src/qtui/qtuiapplication.cpp
index
7ae97df
..
ac9562f
100644
(file)
--- a/
src/qtui/qtuiapplication.cpp
+++ b/
src/qtui/qtuiapplication.cpp
@@
-50,7
+50,7
@@
void QtUiApplication::init()
throw ExitException{EXIT_FAILURE, tr("Could not load or upgrade client settings!")};
}
throw ExitException{EXIT_FAILURE, tr("Could not load or upgrade client settings!")};
}
- _client
.reset(new Client(std::unique_ptr<QtUi>(new QtUi()))); // TODO C++14: std::make_unique
+ _client
= std::make_unique<Client>(std::make_unique<QtUi>());
// Init UI only after the event loop has started
// TODO Qt5: Make this a lambda
// Init UI only after the event loop has started
// TODO Qt5: Make this a lambda