mkv: Introduced MKV_CHECKED_PTR_DECL
commitd8b179e214bf5687ce8eed5a7eea3e529f256ed8
authorFilip Roséen <filip@atch.se>
Fri, 4 Mar 2016 16:04:11 +0000 (4 17:04 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 5 Mar 2016 21:20:28 +0000 (5 22:20 +0100)
treef51491a33d99c4f870d8bc2fbaf6b80aa18ec908
parent553febf4d8d473b7849eda2735ea77bbcb4f7c80
mkv: Introduced MKV_CHECKED_PTR_DECL

`MKV_IS_ID` is a macro to check whether the object hiding behind a pointer
has a certain dynamic type and it is being used all over the module.

There are however a lot of cases that is followed by a static_cast to the
appropriate type; `MKV_CHECKED_PTR_DECL` has been introduced to shorten
code that has such usage.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/mkv/mkv.hpp