From a7f70afca994c1dbd37230459032c2eca9a99dc9 Mon Sep 17 00:00:00 2001 From: Renaud Date: Mon, 28 Dec 2015 20:58:47 +0100 Subject: manage homogeneous --- cli/main.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'cli/main.cpp') diff --git a/cli/main.cpp b/cli/main.cpp index 80c19a9..dd21ea7 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -46,8 +46,6 @@ QTextStream out(stdout, QIODevice::WriteOnly); QString diceToText(ExportedDiceResult& dice,bool highlight,bool homogeneous) { QStringList resultGlobal; - if(homogeneous) - { foreach(int face, dice.keys()) { QStringList result; @@ -96,7 +94,7 @@ QString diceToText(ExportedDiceResult& dice,bool highlight,bool homogeneous) resultGlobal << result; } } - } + /* } else { foreach(int face, dice.keys()) @@ -140,7 +138,7 @@ QString diceToText(ExportedDiceResult& dice,bool highlight,bool homogeneous) resultGlobal << QString(" (%1) ").arg(result.join(',')); } - } + }*/ return resultGlobal.join(' '); } @@ -161,7 +159,7 @@ void startDiceParsing(QString& cmd,QString& treeFile,bool highlight) } ExportedDiceResult list; - bool homogeneous; + bool homogeneous = true; parser->getLastDiceResult(list,homogeneous); QString diceText = diceToText(list,highlight,homogeneous); QString scalarText; -- cgit v1.2.3-70-g09d2