X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fqtui.cpp;h=d438c2094122abd27f93e79ea3f0a31bac443b1d;hp=9bd81577c45ccb6bb9bc21a3f21b286108279858;hb=20745bd0cbae035b84913127dfec9e8433d1282d;hpb=f9cd845a9119e0abf450a91d8802f5c1822dd638 diff --git a/src/qtui/qtui.cpp b/src/qtui/qtui.cpp index 9bd81577..d438c209 100644 --- a/src/qtui/qtui.cpp +++ b/src/qtui/qtui.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include "abstractnotificationbackend.h" #include "buffermodel.h" @@ -79,7 +80,7 @@ void QtUi::init() setContextMenuActionProvider(new ContextMenuActionProvider(this)); setToolBarActionProvider(new ToolBarActionProvider(this)); - _mainWin.reset(new MainWin()); // TODO C++14: std::make_unique + _mainWin = std::make_unique(); setMainWidget(_mainWin.get()); connect(_mainWin.get(), SIGNAL(connectToCore(const QVariantMap &)), this, SIGNAL(connectToCore(const QVariantMap &))); @@ -355,7 +356,7 @@ void QtUi::refreshIconTheme() // Since we can't get notified when the system theme changes, this means that a restart may be required // to apply a theme change... but you can't have everything, I guess. if (!_dummyThemeDir) { - _dummyThemeDir.reset(new QTemporaryDir{}); + _dummyThemeDir = std::make_unique(); if (!_dummyThemeDir->isValid() || !QDir{_dummyThemeDir->path()}.mkpath("icons/quassel-icon-proxy/apps/32")) { qWarning() << "Could not create temporary directory for proxying the system icon theme, using fallback"; QIcon::setThemeName(fallbackTheme);