clang-tidy: performance-for-range-copy
This commit is contained in:
parent
bdcb18ad8e
commit
aa6267c242
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue