From 328c217960ac3ee92270739a2dc4fc9d566789c3 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 13 Mar 2014 15:11:08 -0400 Subject: [PATCH] Help: Drop cmStdString from cmake-developer(7) examples The type no longer exists within CMake. --- Help/manual/cmake-developer.7.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Help/manual/cmake-developer.7.rst b/Help/manual/cmake-developer.7.rst index 376b56cc4..d025d6347 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& someSet = getSet(); + const std::set& 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& someSet; - const std::set::const_iterator i = someSet.find("needle"); + const std::set& someSet; + const std::set::const_iterator i = someSet.find("needle"); if (i != propSet.end()) // Ok { // ... @@ -110,7 +110,7 @@ conversion is not allowed: .. code-block:: c++ - std::set theSet; + std::set theSet; std::vector 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 theSet; + std::set theSet; std::vector theVector; - for(std::set::iterator li = theSet.begin(); + for(std::set::iterator li = theSet.begin(); li != theSet.end(); ++li) { theVector.push_back(*li);