summaryrefslogtreecommitdiffstats
path: root/Source/cmCableClassSet.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-05-16 21:43:53 (GMT)
committerBrad King <brad.king@kitware.com>2001-05-16 21:43:53 (GMT)
commit9f8d296f159907bee285e708cbcb9b2403c01f5f (patch)
treef6d6fd39af915a565efdd57367c497c7e4c3424c /Source/cmCableClassSet.cxx
parent93bdef43fb42c780beae174c7a1aae611fdbc06e (diff)
downloadCMake-9f8d296f159907bee285e708cbcb9b2403c01f5f.zip
CMake-9f8d296f159907bee285e708cbcb9b2403c01f5f.tar.gz
CMake-9f8d296f159907bee285e708cbcb9b2403c01f5f.tar.bz2
ERR: Removed use of member templates.
Diffstat (limited to 'Source/cmCableClassSet.cxx')
-rw-r--r--Source/cmCableClassSet.cxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/cmCableClassSet.cxx b/Source/cmCableClassSet.cxx
index 75f284e..85dc4b4 100644
--- a/Source/cmCableClassSet.cxx
+++ b/Source/cmCableClassSet.cxx
@@ -44,6 +44,18 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
/**
* Add to the set of required sources to define the class.
*/
+void cmCableClass::AddSources(const Sources& sources)
+{
+ for(Sources::const_iterator s = sources.begin(); s != sources.end(); ++s)
+ {
+ m_Sources.insert(*s);
+ }
+}
+
+
+/**
+ * Add to the set of required sources to define the class.
+ */
void cmCableClass::AddSource(const char* source)
{
m_Sources.insert(source);
@@ -178,7 +190,7 @@ void cmCableClassSet::ParseAndAddElement(const char* element,
else
{
cmCableClass cableClass;
- cableClass.AddSources(sources.begin(), sources.end());
+ cableClass.AddSources(sources);
this->AddClass(className.c_str(), cableClass);
}
}
@@ -194,7 +206,7 @@ void cmCableClassSet::AddCableClassSet(const cmCableClassSet& set,
for(CableClassMap::const_iterator c = set.Begin(); c != set.End(); ++c)
{
cmCableClass cableClass = c->second;
- cableClass.AddSources(sources.begin(), sources.end());
+ cableClass.AddSources(sources);
this->AddClass(c->first.c_str(), cableClass);
}
}