From 5f416cf45bd3b4eb0d4327a24d0aae5605f05585 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 16 May 2001 17:11:01 -0400 Subject: ERR: Removed dynamic_cast so that RTTI isn't required. --- Source/cmCableClassSet.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmCableClassSet.cxx b/Source/cmCableClassSet.cxx index a84a63d..75f284e 100644 --- a/Source/cmCableClassSet.cxx +++ b/Source/cmCableClassSet.cxx @@ -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(d); + // This should be a dynamic_cast, but we don't want to require RTTI. + cmCableClassSet* classSet = static_cast(d); if(classSet) { this->AddCableClassSet(*classSet, sources); -- cgit v0.12