summaryrefslogtreecommitdiff
path: root/common/trace_dump.cpp
diff options
context:
space:
mode:
authorNigel Stewart <nstewart@nvidia.com>2013-07-10 09:01:01 -0500
committerJosé Fonseca <jfonseca@vmware.com>2013-07-11 18:14:59 +0100
commitabaef29db0cf1a3e2adb0c254886162368b1645a (patch)
treebe5d9d539235b937d1e842598e2b102fb8d8658b /common/trace_dump.cpp
parent084fe926e8fbbdf41f19d844157e4baac6a6b538 (diff)
Replace dynamic_cast with virtual functions.
apitrace can be built with without RTTI (runtime type information) providing that dynamic_cast isn't used.
Diffstat (limited to 'common/trace_dump.cpp')
-rw-r--r--common/trace_dump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/trace_dump.cpp b/common/trace_dump.cpp
index 655b023d..6e67e08a 100644
--- a/common/trace_dump.cpp
+++ b/common/trace_dump.cpp
@@ -178,7 +178,7 @@ public:
if (!memberName || !*memberName) {
// Anonymous structure
- Struct *memberStruct = dynamic_cast<Struct *>(memberValue);
+ Struct *memberStruct = memberValue->toStruct();
assert(memberStruct);
if (memberStruct) {
sep = visitMembers(memberStruct, sep);