summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2017-12-27 06:17:24 +0100
committerArno <arno@disconnect.de>2017-12-27 06:17:24 +0100
commitffb477b89f4bb4de93ded83eb99b84d81fc7fe75 (patch)
tree3ed62f841fe807c54bad8f1aafe0fc48026cd298
parente2ac3a4b18573e8999138000e8af9e7b16192ea0 (diff)
downloadSheMov-ffb477b89f4bb4de93ded83eb99b84d81fc7fe75.tar.gz
SheMov-ffb477b89f4bb4de93ded83eb99b84d81fc7fe75.tar.bz2
SheMov-ffb477b89f4bb4de93ded83eb99b84d81fc7fe75.zip
Clean up SmGlobals
* remove a bunch of uncessary #includes * remove a deprecation warning: use std::sort instead of qSort
-rw-r--r--smglobals.cpp13
1 files changed, 2 insertions, 11 deletions
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 <QSqlDatabase>
-#include <QAbstractItemModel>
-#include <QStringList>
-#include <QtWidgets/QMessageBox>
+#include <QMessageBox>
#include <QSettings>
-#include <QDir>
-#include <QFile>
-#include <QDataStream>
-#include <QFileInfo>
-#include <QTemporaryFile>
-#include <QProcess>
#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);
}