diff options
| author | 2018-12-09 14:35:58 +0100 | |
|---|---|---|
| committer | 2018-12-09 14:35:58 +0100 | |
| commit | 3109e5e63c01607545cd9f22e375cd7b4f245b85 (patch) | |
| tree | f3fe9b5ab37f0de9c597e998b5664b8acb5ea513 /cli | |
| parent | c4b9d5ff34b49715853b362376cf519408739954 (diff) | |
| download | OneRoll-3109e5e63c01607545cd9f22e375cd7b4f245b85.tar.gz OneRoll-3109e5e63c01607545cd9f22e375cd7b4f245b85.zip | |
Remove compilation warnings.
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/displaytoolbox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/displaytoolbox.cpp b/cli/displaytoolbox.cpp index f477274..5f45e09 100644 --- a/cli/displaytoolbox.cpp +++ b/cli/displaytoolbox.cpp @@ -321,17 +321,17 @@ QJsonArray DisplayToolBox::diceToJson(QList<ExportedDiceResult>& diceList,bool& object["color"]=*it; object["face"]=face; QJsonArray values; - for(auto const dice : list) + for(auto const& dice : list) { QJsonObject diceObj; auto listValues = dice.getResult(); if(!listValues.isEmpty()) { - diceObj["total"]=(qint64)listValues.takeFirst(); + diceObj["total"]=static_cast<qint64>(listValues.takeFirst()); QJsonArray subValues; for(auto result : listValues) { - subValues.push_back((qint64)result); + subValues.push_back(static_cast<qint64>(result)); } diceObj["subvalues"]=subValues; } |