diff options
author | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-02-13 14:17:45 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-21 14:21:45 +0000 |
commit | 1401a2ef0a00458d6d6677cacd32af6ad0440f55 (patch) | |
tree | 0446e82a9241f6a5bb6cbcef32bd77219e4f4ef2 /src/qml/memory | |
parent | 10942bd94b20bc72dd699425bb0431524148e742 (diff) |
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 <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/memory')
-rw-r--r-- | src/qml/memory/qv4heap_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 <typename Type> - Type *as() { return static_cast<Type *>(ptr); } + Type *cast() { return static_cast<Type *>(ptr); } // Use Base, not T here, to ensure T inherits from ptr Base *ptr; |