From 6d29eda49129893d8f5e385bfbe8473af154b82b Mon Sep 17 00:00:00 2001 From: "humper@google.com" Date: Mon, 14 Jan 2013 19:20:28 +0000 Subject: 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 --- include/utils/SkRTConf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/utils/SkRTConf.h b/include/utils/SkRTConf.h index 22d7e606ee..efbd3c5dd3 100644 --- a/include/utils/SkRTConf.h +++ b/include/utils/SkRTConf.h @@ -124,7 +124,8 @@ void SkRTConf::doPrint(char *s) const { template bool SkRTConf::equals(const SkRTConfBase *conf) const { - const SkRTConf *child_pointer = dynamic_cast *>(conf); + // static_cast here is okay because there's only one kind of child class. + const SkRTConf *child_pointer = static_cast *>(conf); return child_pointer && fName == child_pointer->fName && fDescription == child_pointer->fDescription && -- cgit v1.2.3