minimize extra dv::value copies

This commit is contained in:
MihailRis
2024-09-19 13:45:32 +03:00
parent bd176f24e1
commit 3953583605
14 changed files with 29 additions and 26 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ static void read_anim_file(
if (auto found = root.at("frames")) {
auto& frameArr = *found;
for (size_t i = 0; i < frameArr.size(); i++) {
auto currentFrame = frameArr[i];
const auto& currentFrame = frameArr[i];
frameName = currentFrame[0].asString();
if (currentFrame.size() > 1) {