diff options
author | Brad King <brad.king@kitware.com> | 2016-05-25 13:34:29 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-05-25 13:34:29 (GMT) |
commit | 6052e4b3bfe62a8d29ca679affb101c7aec0d219 (patch) | |
tree | db207f809276b9c5691c889b9e658befc93e6d4c /Source/cmExtraEclipseCDT4Generator.cxx | |
parent | 9ebc2092885fa32eaa47aade965fcec2cfa308d0 (diff) | |
parent | 5784747d1b0404a0c1cb0223b15b823476023fba (diff) | |
download | CMake-6052e4b3bfe62a8d29ca679affb101c7aec0d219.zip CMake-6052e4b3bfe62a8d29ca679affb101c7aec0d219.tar.gz CMake-6052e4b3bfe62a8d29ca679affb101c7aec0d219.tar.bz2 |
Merge topic 'improve-character-find-and-replace'
5784747d Improve string find: prefer character overloads.
5cec953e Use std::replace for replacing chars in strings.
2a1a2033 cmExtraEclipseCDT4Generator: use std::replace.
34bc6e1f cmCTestScriptHandler: don't call find repeatedly.
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.cxx')
-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 f1b2e33..f24e7fb 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); |