diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-05-24 21:06:56 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-05-24 21:22:16 (GMT) |
commit | 2a1a2033afe73da08af46e12ed77a8f55a89417f (patch) | |
tree | 3d81cb68789a41bd33e6cc05c85cad3a411b13ff | |
parent | 34bc6e1f3b2564abfcc79e7724697c2657a56129 (diff) | |
download | CMake-2a1a2033afe73da08af46e12ed77a8f55a89417f.zip CMake-2a1a2033afe73da08af46e12ed77a8f55a89417f.tar.gz CMake-2a1a2033afe73da08af46e12ed77a8f55a89417f.tar.bz2 |
cmExtraEclipseCDT4Generator: use std::replace.
-rw-r--r-- | Source/cmExtraEclipseCDT4Generator.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx index a8f2e3f..e8a04e8 100644 --- a/Source/cmExtraEclipseCDT4Generator.cxx +++ b/Source/cmExtraEclipseCDT4Generator.cxx @@ -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); |