diff options
| author | 2022-01-22 00:11:28 +0100 | |
|---|---|---|
| committer | 2022-01-22 00:21:19 +0100 | |
| commit | bca7533035f224671e0d41060dfa7de2811ca397 (patch) | |
| tree | 74e1926483e3b50cc24e5a77f0f7aef0e1f7d33e /parsingtoolbox.cpp | |
| parent | 187774c338c35864a2d3ad1c95ad06e9685c8427 (diff) | |
| download | OneRoll-bca7533035f224671e0d41060dfa7de2811ca397.tar.gz OneRoll-bca7533035f224671e0d41060dfa7de2811ca397.zip | |
Fix small code.
Diffstat (limited to 'parsingtoolbox.cpp')
| -rw-r--r-- | parsingtoolbox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parsingtoolbox.cpp b/parsingtoolbox.cpp index 4453f03..d2dbe79 100644 --- a/parsingtoolbox.cpp +++ b/parsingtoolbox.cpp @@ -1203,7 +1203,7 @@ QString ParsingToolBox::replacePlaceHolderFromJson(const QString& source, const auto obj= inst.toObject(); auto vals= obj["diceval"].toArray(); int lastFace= -1; - for(auto valRef : vals) + for(auto const& valRef : qAsConst(vals)) { auto diceObj= valRef.toObject(); auto face= diceObj["face"].toInt(); |