mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 13:17:44 +00:00
Avoid unnecessary string copies
closes https://github.com/official-stockfish/Stockfish/pull/4326 also fixes typo, closes https://github.com/official-stockfish/Stockfish/pull/4332 No functional change
This commit is contained in:
committed by
Joost VandeVondele
parent
e9e7a7b83f
commit
4f4e652eca
+1
-1
@@ -89,7 +89,7 @@ namespace Eval {
|
||||
vector<string> dirs = { "<internal>" , "" , CommandLine::binaryDirectory };
|
||||
#endif
|
||||
|
||||
for (string directory : dirs)
|
||||
for (const string& directory : dirs)
|
||||
if (currentEvalFileName != eval_file)
|
||||
{
|
||||
if (directory != "<internal>")
|
||||
|
||||
Reference in New Issue
Block a user