diff options
| author | 2019-12-18 01:01:20 +0100 | |
|---|---|---|
| committer | 2019-12-22 01:19:23 +0100 | |
| commit | 0499b503e8ad9c5820df115569effaca8a957777 (patch) | |
| tree | 9e594ee8728c6234b6018d19be6097c200f250a0 /diceparser.cpp | |
| parent | 60fb4821f883636dad9a404fd3d2fcdb0e48e10c (diff) | |
| download | OneRoll-0499b503e8ad9c5820df115569effaca8a957777.tar.gz OneRoll-0499b503e8ad9c5820df115569effaca8a957777.zip | |
OPTI: Add QSet instead of QString
Diffstat (limited to 'diceparser.cpp')
| -rw-r--r-- | diceparser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/diceparser.cpp b/diceparser.cpp index ad8400d..acce867 100644 --- a/diceparser.cpp +++ b/diceparser.cpp @@ -543,7 +543,7 @@ void DiceParser::getDiceResultFromAllInstruction(QList<ExportedDiceResult>& resu void DiceParser::getLastDiceResult(QList<ExportedDiceResult>& diceValuesList, bool& homogeneous) { - QStringList alreadySeenDice; + QSet<QString> alreadySeenDice; for(auto start : m_startNodes) { ExportedDiceResult diceValues; @@ -1199,10 +1199,10 @@ bool DiceParser::readOption(QString& str, ExecutionNode* previous) //, break; case AllSameExplode: { - AllSameNode* allSame = new AllSameNode(); + AllSameNode* allSame= new AllSameNode(); previous->setNextNode(allSame); - node=allSame; - found = true; + node= allSame; + found= true; } break; case Bind: |