From 1401a2ef0a00458d6d6677cacd32af6ad0440f55 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Fri, 13 Feb 2015 14:17:45 +0100 Subject: Rename Heap::Base::as() to cast() The as() methods in other places to dynamic type checking, whereas cast() methods are basically the same as a static_cast. Change-Id: Iacd0174824b41b8fad05d6b55b1e62e3b44a31db Reviewed-by: Simon Hausmann --- src/qml/memory/qv4heap_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/memory') diff --git a/src/qml/memory/qv4heap_p.h b/src/qml/memory/qv4heap_p.h index c396f0fd21..5f931529e9 100644 --- a/src/qml/memory/qv4heap_p.h +++ b/src/qml/memory/qv4heap_p.h @@ -114,7 +114,7 @@ struct Pointer { Pointer &operator =(T *t) { ptr = t; return *this; } template - Type *as() { return static_cast(ptr); } + Type *cast() { return static_cast(ptr); } // Use Base, not T here, to ensure T inherits from ptr Base *ptr; -- cgit v1.2.3