diff --git a/.gitignore b/.gitignore index 7b037c0..ef0771b 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,6 @@ Makefile.Release *.pdb *.user *.pro.user.* + +/.qtcreator/ +/build/ diff --git a/clamp.h b/clamp.h index aca0b1a..70f621b 100644 --- a/clamp.h +++ b/clamp.h @@ -2,6 +2,8 @@ #ifndef CLAMP_H_ #define CLAMP_H_ +#if __cplusplus < 201703L + namespace std { // will be in STD with C++17 @@ -12,4 +14,7 @@ const T& clamp( const T& value, const T& lower, const T& upper ) } } + +#endif + #endif // CLAMP_H_ diff --git a/minutor.cpp b/minutor.cpp index d704184..209a802 100644 --- a/minutor.cpp +++ b/minutor.cpp @@ -1,6 +1,6 @@ /** Copyright (c) 2013, Sean Kasun */ #include -#include +#include #include #include #include diff --git a/search/searchtextwidget.cpp b/search/searchtextwidget.cpp index 6e3ba2e..8e08eb9 100644 --- a/search/searchtextwidget.cpp +++ b/search/searchtextwidget.cpp @@ -1,6 +1,8 @@ #include "search/searchtextwidget.h" #include "ui_searchtextwidget.h" +#include + SearchTextWidget::SearchTextWidget(const QString &name, QWidget *parent) : QWidget(parent) , ui(new Ui::SearchTextWidget) diff --git a/worldinfo.cpp b/worldinfo.cpp index 6ab82a3..98f2507 100644 --- a/worldinfo.cpp +++ b/worldinfo.cpp @@ -3,9 +3,12 @@ #include "worldinfo.h" #include +#include #include #include #include +#include +#include #include "nbt/nbt.h" #include "zipreader.h" @@ -210,7 +213,7 @@ bool WorldInfo::parseDatapackNamespace(const QString name_space, const QString p // test if already there if (datapacks.contains(name_space)) { - QMap::const_iterator it = datapacks.constFind(name_space); + auto it = datapacks.constFind(name_space); for (; it != datapacks.constEnd(); ++it) { if (it->path == path) return false; }