Skip to content

Commit

Permalink
don't copy set
Browse files Browse the repository at this point in the history
  • Loading branch information
rzblue committed Nov 6, 2024
1 parent 2bf23b7 commit 1c82fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpilibc/src/main/native/cpp/Alert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Alert::SendableAlerts::GetActiveAlertsStorage(AlertType type) const {

std::vector<std::string> Alert::SendableAlerts::GetStrings(
AlertType type) const {
auto set = GetActiveAlertsStorage(type);
auto& set = GetActiveAlertsStorage(type);
std::vector<std::string> output;
output.reserve(set.size());
for (auto& alert : set) {
Expand Down

0 comments on commit 1c82fcd

Please sign in to comment.