summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-07-30 16:21:50 (GMT)
committerBrad King <brad.king@kitware.com>2001-07-30 16:21:50 (GMT)
commit489e91a1f7b1d5d9542cb965b47a44f99878c7a5 (patch)
treec648eab9dab6a37c7043c1dc0a0990bd4c566493 /Source
parentddec29c52d790333fd83b7826d807b73f4f1e36c (diff)
downloadCMake-489e91a1f7b1d5d9542cb965b47a44f99878c7a5.zip
CMake-489e91a1f7b1d5d9542cb965b47a44f99878c7a5.tar.gz
CMake-489e91a1f7b1d5d9542cb965b47a44f99878c7a5.tar.bz2
ERR: ElementCombinationGenerator::ReplacePortion needs to be a friend of ElementCombinationGenerator so that it can get access to ElementCombinationGenerator::Substitution. Also fixed one minor problem for HP build.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCableClassSet.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmCableClassSet.cxx b/Source/cmCableClassSet.cxx
index ed56ad6..09e1e06 100644
--- a/Source/cmCableClassSet.cxx
+++ b/Source/cmCableClassSet.cxx
@@ -228,6 +228,8 @@ private:
* Represent the "$SomeSetName" portion of an input string. This has a
* reference to the Substitution holding the real output to generate.
*/
+ class ReplacePortion;
+ friend class ReplacePortion;
class ReplacePortion: public Portion
{
public:
@@ -364,7 +366,7 @@ ElementCombinationGenerator
// Put together all the pieces, with substitutions.
for(Portions::const_iterator i = m_Portions.begin();
- i != m_Portions.end(); ++i)
+ i != Portions::const_iterator(m_Portions.end()); ++i)
{
// See if there is a class associated with this portion.
const cmCableClass* curClassPortion = (*i)->GetClass();