Skip to content
Snippets Groups Projects
Commit 2a1a2033 authored by Daniel Pfeifer's avatar Daniel Pfeifer
Browse files

cmExtraEclipseCDT4Generator: use std::replace.

parent 34bc6e1f
No related branches found
No related tags found
No related merge requests found
......@@ -435,11 +435,7 @@ void cmExtraEclipseCDT4Generator::WriteGroups(
linkName3 += "/";
linkName3 += sgIt->GetFullName();
size_t pos = 0;
while ((pos = linkName3.find("\\", pos)) != std::string::npos) {
linkName3.replace(pos, 1, "/");
pos++;
}
std::replace(linkName3.begin(), linkName3.end(), '\\', '/');
this->AppendLinkedResource(xml, linkName3, "virtual:/virtual",
VirtualFolder);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment