From 6b641549536d199a0314049a34e61363bd4df7e0 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 24 Nov 2016 15:39:07 +0100 Subject: Clean up duplicated checks whether a Value is a Managed Change-Id: Ib044be254dbb41bd9fb4a6e0baa3bd3c007e6a2a Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4errorobject_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/jsruntime/qv4errorobject_p.h') diff --git a/src/qml/jsruntime/qv4errorobject_p.h b/src/qml/jsruntime/qv4errorobject_p.h index 42a6e0b4b1..2b3ab25e2d 100644 --- a/src/qml/jsruntime/qv4errorobject_p.h +++ b/src/qml/jsruntime/qv4errorobject_p.h @@ -178,7 +178,7 @@ struct ErrorObject: Object { template<> inline const ErrorObject *Value::as() const { - return isManaged() && m() && m()->vtable()->isErrorObject ? reinterpret_cast(this) : 0; + return isManaged() && m()->vtable()->isErrorObject ? reinterpret_cast(this) : 0; } struct EvalErrorObject: ErrorObject { -- cgit v1.2.3