summaryrefslogtreecommitdiffstats
path: root/Source/cmCableClassSet.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-05-16 21:11:01 (GMT)
committerBrad King <brad.king@kitware.com>2001-05-16 21:11:01 (GMT)
commit5f416cf45bd3b4eb0d4327a24d0aae5605f05585 (patch)
tree52fc1bb8054125335be28eb38b34831041eba69c /Source/cmCableClassSet.cxx
parentf08a1b88853fda7376808cb8ebbb63201dde10f6 (diff)
downloadCMake-5f416cf45bd3b4eb0d4327a24d0aae5605f05585.zip
CMake-5f416cf45bd3b4eb0d4327a24d0aae5605f05585.tar.gz
CMake-5f416cf45bd3b4eb0d4327a24d0aae5605f05585.tar.bz2
ERR: Removed dynamic_cast so that RTTI isn't required.
Diffstat (limited to 'Source/cmCableClassSet.cxx')
-rw-r--r--Source/cmCableClassSet.cxx3
1 files changed, 2 insertions, 1 deletions
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<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);