aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/diceparser.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-12-18 01:01:20 +0100
committerRenaud G <renaud@rolisteam.org>2019-12-22 01:19:23 +0100
commit0499b503e8ad9c5820df115569effaca8a957777 (patch)
tree9e594ee8728c6234b6018d19be6097c200f250a0 /diceparser.cpp
parent60fb4821f883636dad9a404fd3d2fcdb0e48e10c (diff)
downloadOneRoll-0499b503e8ad9c5820df115569effaca8a957777.tar.gz
OneRoll-0499b503e8ad9c5820df115569effaca8a957777.zip
OPTI: Add QSet instead of QString
Diffstat (limited to 'diceparser.cpp')
-rw-r--r--diceparser.cpp8
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: