summaryrefslogtreecommitdiffstats
path: root/Help/manual
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-13 19:11:08 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-13 19:11:22 (GMT)
commit328c217960ac3ee92270739a2dc4fc9d566789c3 (patch)
treee7712f56a6974c56a493c8cc02b7f3404e020c77 /Help/manual
parent82a7d54cfe75c399b66c888acfcb5ddb15af547b (diff)
downloadCMake-328c217960ac3ee92270739a2dc4fc9d566789c3.zip
CMake-328c217960ac3ee92270739a2dc4fc9d566789c3.tar.gz
CMake-328c217960ac3ee92270739a2dc4fc9d566789c3.tar.bz2
Help: Drop cmStdString from cmake-developer(7) examples
The type no longer exists within CMake.
Diffstat (limited to 'Help/manual')
-rw-r--r--Help/manual/cmake-developer.7.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Help/manual/cmake-developer.7.rst b/Help/manual/cmake-developer.7.rst
index 376b56c..d025d63 100644
--- a/Help/manual/cmake-developer.7.rst
+++ b/Help/manual/cmake-developer.7.rst
@@ -55,7 +55,7 @@ used in a comparison with the iterator returned by ``end()``:
.. code-block:: c++
- const std::set<cmStdString>& someSet = getSet();
+ const std::set<std::string>& someSet = getSet();
if (someSet.find("needle") == someSet.end()) // Wrong
{
// ...
@@ -66,8 +66,8 @@ The return value of ``find()`` must be assigned to an intermediate
.. code-block:: c++
- const std::set<cmStdString>& someSet;
- const std::set<cmStdString>::const_iterator i = someSet.find("needle");
+ const std::set<std::string>& someSet;
+ const std::set<std::string>::const_iterator i = someSet.find("needle");
if (i != propSet.end()) // Ok
{
// ...
@@ -110,7 +110,7 @@ conversion is not allowed:
.. code-block:: c++
- std::set<cmStdString> theSet;
+ std::set<const char*> theSet;
std::vector<std::string> theVector;
theVector.insert(theVector.end(), theSet.begin(), theSet.end()); // Wrong
@@ -118,9 +118,9 @@ A loop must be used instead:
.. code-block:: c++
- std::set<cmStdString> theSet;
+ std::set<const char*> theSet;
std::vector<std::string> theVector;
- for(std::set<cmStdString>::iterator li = theSet.begin();
+ for(std::set<const char*>::iterator li = theSet.begin();
li != theSet.end(); ++li)
{
theVector.push_back(*li);