From 6ba9324cf4864ebd2e2cdec8098b0889ceaea0a8 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 16 Apr 2022 01:58:40 +0200 Subject: Make sure Windows compilation works --- diceparser.cpp | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'diceparser.cpp') 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 + #include #include #include @@ -31,11 +32,11 @@ #include #include "booleancondition.h" -#include "dicealias.h" -#include "parsingtoolbox.h" #include "range.h" #include "result/stringresult.h" #include "validator.h" +#include +#include #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; } -- cgit v1.2.3-70-g09d2