mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 10:02:24 +02:00
Use const reference (warning)
This commit is contained in:
parent
8a12bf1749
commit
c4c69f09ee
1 changed files with 5 additions and 5 deletions
|
@ -166,12 +166,12 @@ namespace controller {
|
|||
QJsonObject data;
|
||||
data["frameCount"] = _framesRecorded;
|
||||
data["version"] = "0.0";
|
||||
|
||||
|
||||
QJsonArray actionArrayList;
|
||||
QJsonArray poseArrayList;
|
||||
for(const ActionStates actionState: _actionStateList) {
|
||||
for(const ActionStates& actionState: _actionStateList) {
|
||||
QJsonArray actionArray;
|
||||
for (const auto action: actionState) {
|
||||
for (const auto& action: actionState) {
|
||||
QJsonObject actionJson;
|
||||
actionJson["name"] = action.first;
|
||||
actionJson["value"] = action.second;
|
||||
|
@ -180,9 +180,9 @@ namespace controller {
|
|||
actionArrayList.append(actionArray);
|
||||
}
|
||||
|
||||
for (const PoseStates poseState: _poseStateList) {
|
||||
for (const PoseStates& poseState: _poseStateList) {
|
||||
QJsonArray poseArray;
|
||||
for (const auto pose: poseState) {
|
||||
for (const auto& pose: poseState) {
|
||||
QJsonObject poseJson;
|
||||
poseJson["name"] = pose.first;
|
||||
poseJson["pose"] = poseToJsonObject(pose.second);
|
||||
|
|
Loading…
Reference in a new issue