clang-tidy: performance-for-range-copy

This commit is contained in:
prisixia 2023-05-06 09:44:23 +02:00
parent bdcb18ad8e
commit aa6267c242
Signed by: prisixia
GPG Key ID: CB939A148C9B4125
2 changed files with 2 additions and 2 deletions

View File

@ -498,7 +498,7 @@ bool StagesPanel::HasDuplicateInternalName(const std::string &name,
const Starpounds::WeightStage &stage = m_stages.at(selection);
for (const Starpounds::WeightStageSub sub : stage.GetSubs()) {
for (const Starpounds::WeightStageSub &sub : stage.GetSubs()) {
if (sub.GetName() == name)
return true;
}

View File

@ -393,7 +393,7 @@ void Frame::DoGenerateMod(wxCommandEvent &WXUNUSED(event)) {
const Starbound::Item::Frames femaleFrames("chestf.png", "bsleevef.png",
"fsleevef.png");
for (Starpounds::WeightStage stage : stages) {
for (const Starpounds::WeightStage &stage : stages) {
const std::string baseShortDescription =
(stage.GetFriendlyName().empty()
? friendlySpecies