mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 11:26:02 +03:00
Range-ify usages of front-end Arrays
This commit is contained in:
parent
9fd7fa2d90
commit
383c2d3a59
14 changed files with 46 additions and 46 deletions
|
@ -404,8 +404,8 @@ void parseCommandLine(int argc, char **argv, Strings &sourceFiles,
|
|||
const auto toWinPaths = [](Strings *paths) {
|
||||
if (!paths)
|
||||
return;
|
||||
for (unsigned i = 0; i < paths->dim; ++i)
|
||||
(*paths)[i] = dupPathString((*paths)[i]);
|
||||
for (auto &path : *paths)
|
||||
path = dupPathString(path);
|
||||
};
|
||||
toWinPaths(global.params.imppath);
|
||||
toWinPaths(global.params.fileImppath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue