ERR: Removed dynamic_cast so that RTTI isn't required.
This commit is contained in:
parent
f08a1b8885
commit
5f416cf45b
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user