From ffb477b89f4bb4de93ded83eb99b84d81fc7fe75 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 27 Dec 2017 06:17:24 +0100 Subject: Clean up SmGlobals * remove a bunch of uncessary #includes * remove a deprecation warning: use std::sort instead of qSort --- smglobals.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'smglobals.cpp') diff --git a/smglobals.cpp b/smglobals.cpp index aff8e1b..0e4b3a9 100644 --- a/smglobals.cpp +++ b/smglobals.cpp @@ -5,17 +5,8 @@ 2 of the License, or (at your option) any later version. */ -#include -#include -#include -#include +#include #include -#include -#include -#include -#include -#include -#include #include "smglobals.h" #include "archivemodel.h" @@ -174,7 +165,7 @@ void SmGlobals::registerWidget(const QString &name, QWidget *w){ void SmGlobals::setReencReasons(const QStringList reasons){ mReencReasons = reasons; - qSort(mReencReasons); + std::sort(mReencReasons.begin(), mReencReasons.end()); QSettings s; s.setValue("ui/reasons", mReencReasons); } -- cgit v1.2.3-70-g09d2