Skip to content

Commit

Permalink
Adjusts appending {recall} operator to use at(...) for bounds checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Buchwald committed May 21, 2024
1 parent 14f1903 commit 3f0ae0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/viewmodels/TriggerConditionViewModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ void TriggerConditionViewModel::SerializeAppendOperand(std::string& sBuffer, Tri
case TriggerOperandType::Recall:
{
std::string recall = "{recall}";
for ( int i = 0; i < (int)recall.length(); i++) {
sBuffer.push_back(recall[i]);
for (size_t i = 0; i < recall.length(); i++) {
sBuffer.push_back(recall.at(i));
}
return;
}
Expand Down

0 comments on commit 3f0ae0c

Please sign in to comment.