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

This commit is contained in:
Brad King 2001-05-16 17:11:01 -04:00
parent f08a1b8885
commit 5f416cf45b
1 changed files with 2 additions and 1 deletions

View File

@ -164,7 +164,8 @@ void cmCableClassSet::ParseAndAddElement(const char* element,
{
std::string setName = setDereference.match(1);
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)
{
this->AddCableClassSet(*classSet, sources);