diff options
| author | 2022-04-16 01:58:40 +0200 | |
|---|---|---|
| committer | 2022-04-16 02:59:30 +0200 | |
| commit | 6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8 (patch) | |
| tree | e29af0f803de724e28eab85da2dfe6c535a8292b /diceparser.cpp | |
| parent | 0c040da59e6aa2df3bd0c22e38b2afe0512d3749 (diff) | |
| download | OneRoll-6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8.tar.gz OneRoll-6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8.zip | |
Make sure Windows compilation works
Diffstat (limited to 'diceparser.cpp')
| -rw-r--r-- | diceparser.cpp | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/diceparser.cpp b/diceparser.cpp index 5b91994..af86acc 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -19,7 +19,8 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#include "diceparser.h" +#include <diceparser/diceparser.h> + #include <QDebug> #include <QFile> #include <QJsonArray> @@ -31,11 +32,11 @@ #include <numeric> #include "booleancondition.h" -#include "dicealias.h" -#include "parsingtoolbox.h" #include "range.h" #include "result/stringresult.h" #include "validator.h" +#include <diceparser/dicealias.h> +#include <diceparser/parsingtoolbox.h> #define DEFAULT_FACES_NUMBER 10 @@ -176,17 +177,21 @@ QString DiceParser::humanReadableError() const { auto parsingError= m_parsingToolbox->getErrorList(); QString str; - std::for_each(parsingError.begin(), parsingError.end(), [&str](const QString& text) { - str.append(text); - str.append(QStringLiteral("\n")); - }); + std::for_each(parsingError.begin(), parsingError.end(), + [&str](const QString& text) + { + str.append(text); + str.append(QStringLiteral("\n")); + }); /// list auto errMap= errorMap(); - std::for_each(errMap.begin(), errMap.end(), [&str](const QString& text) { - str.append(text); - str.append(QStringLiteral("\n")); - }); + std::for_each(errMap.begin(), errMap.end(), + [&str](const QString& text) + { + str.append(text); + str.append(QStringLiteral("\n")); + }); return str; } |