diff options
author | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-14 19:20:28 +0000 |
---|---|---|
committer | humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-01-14 19:20:28 +0000 |
commit | 6d29eda49129893d8f5e385bfbe8473af154b82b (patch) | |
tree | 8fbcc0d817223154ac98e95e92a96f413a93a93d /src | |
parent | 61a972f11f60a84ec0faadd6c33f77e690317a98 (diff) |
remove dynamic_cast because rtti is disabled on some platforms (but not all??)
BUG=
Review URL: https://codereview.appspot.com/7102056
git-svn-id: http://skia.googlecode.com/svn/trunk@7161 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/SkRTConf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/SkRTConf.cpp b/src/utils/SkRTConf.cpp index fcc51c33c3..2ccfd061cb 100644 --- a/src/utils/SkRTConf.cpp +++ b/src/utils/SkRTConf.cpp @@ -267,8 +267,8 @@ template <typename T> void SkRTConfRegistry::set(const char *name, T value) { } for (SkRTConfBase **confBase = confArray->begin(); confBase != confArray->end(); confBase++) { - - SkRTConf<bool> *concrete = dynamic_cast<SkRTConf<bool> *>(*confBase); + // static_cast here is okay because there's only one kind of child class. + SkRTConf<bool> *concrete = static_cast<SkRTConf<bool> *>(*confBase); if (concrete) { concrete->set(value); |