Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ Makefile.Release
*.pdb
*.user
*.pro.user.*

/.qtcreator/
/build/
5 changes: 5 additions & 0 deletions clamp.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#ifndef CLAMP_H_
#define CLAMP_H_

#if __cplusplus < 201703L

namespace std {

// will be in STD with C++17
Expand All @@ -12,4 +14,7 @@ const T& clamp( const T& value, const T& lower, const T& upper )
}

}

#endif

#endif // CLAMP_H_
2 changes: 1 addition & 1 deletion minutor.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** Copyright (c) 2013, Sean Kasun */
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QAction>
#include <QAction>
#include <QtWidgets/QFileDialog>
#include <QtWidgets/QMessageBox>
#include <QtWidgets/QMenu>
Expand Down
2 changes: 2 additions & 0 deletions search/searchtextwidget.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "search/searchtextwidget.h"
#include "ui_searchtextwidget.h"

#include <QRegExp>

SearchTextWidget::SearchTextWidget(const QString &name, QWidget *parent)
: QWidget(parent)
, ui(new Ui::SearchTextWidget)
Expand Down
5 changes: 4 additions & 1 deletion worldinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
#include "worldinfo.h"

#include <QtWidgets/QMenu>
#include <QActionGroup>
#include <QDirIterator>
#include <QJsonDocument>
#include <QJsonObject>
#include <QRegExp>
#include <QStringRef>

#include "nbt/nbt.h"
#include "zipreader.h"
Expand Down Expand Up @@ -210,7 +213,7 @@ bool WorldInfo::parseDatapackNamespace(const QString name_space, const QString p

// test if already there
if (datapacks.contains(name_space)) {
QMap<QString, DatapackInfo>::const_iterator it = datapacks.constFind(name_space);
auto it = datapacks.constFind(name_space);
for (; it != datapacks.constEnd(); ++it) {
if (it->path == path) return false;
}
Expand Down
Loading