X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=c78237641d061a3fa513722f13188d573165bc80;hp=28a0ad5247d443930ce0d78afe0a03d6dab4ca1b;hb=60c121f3b1ee7d5ced3435cc1718e4e6e6fd8383;hpb=f53aea45e3230239d358d4d35357c9ee6bf6fb54 diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 28a0ad52..c7823764 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -81,7 +81,7 @@ void init(OptionsMap& o) { std::ostream& operator<<(std::ostream& os, const OptionsMap& om) { for (size_t idx = 0; idx < om.size(); ++idx) - for (auto it : om) + for (auto& it : om) if (it.second.idx == idx) { const Option& o = it.second;