cmExtraEclipseCDT4Generator: use std::replace.
This commit is contained in:
parent
34bc6e1f3b
commit
2a1a2033af
|
@ -435,11 +435,7 @@ void cmExtraEclipseCDT4Generator::WriteGroups(
|
||||||
linkName3 += "/";
|
linkName3 += "/";
|
||||||
linkName3 += sgIt->GetFullName();
|
linkName3 += sgIt->GetFullName();
|
||||||
|
|
||||||
size_t pos = 0;
|
std::replace(linkName3.begin(), linkName3.end(), '\\', '/');
|
||||||
while ((pos = linkName3.find("\\", pos)) != std::string::npos) {
|
|
||||||
linkName3.replace(pos, 1, "/");
|
|
||||||
pos++;
|
|
||||||
}
|
|
||||||
|
|
||||||
this->AppendLinkedResource(xml, linkName3, "virtual:/virtual",
|
this->AppendLinkedResource(xml, linkName3, "virtual:/virtual",
|
||||||
VirtualFolder);
|
VirtualFolder);
|
||||||
|
|
Loading…
Reference in New Issue