An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 5f416cf4 authored by Brad King's avatar Brad King
Browse files

ERR: Removed dynamic_cast so that RTTI isn't required.

parent f08a1b88
...@@ -164,7 +164,8 @@ void cmCableClassSet::ParseAndAddElement(const char* element, ...@@ -164,7 +164,8 @@ void cmCableClassSet::ParseAndAddElement(const char* element,
{ {
std::string setName = setDereference.match(1); std::string setName = setDereference.match(1);
cmData* d = makefile->LookupData(setName.c_str()); cmData* d = makefile->LookupData(setName.c_str());
cmCableClassSet* classSet = dynamic_cast<cmCableClassSet*>(d); // This should be a dynamic_cast, but we don't want to require RTTI.
cmCableClassSet* classSet = static_cast<cmCableClassSet*>(d);
if(classSet) if(classSet)
{ {
this->AddCableClassSet(*classSet, sources); this->AddCableClassSet(*classSet, sources);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment