File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ namespace omath::rev_eng
119119 template <std::size_t TableIndex, std::size_t Id, class ReturnType >
120120 ReturnType call_virtual_method (auto ... arg_list)
121121 {
122- void * sub_this = reinterpret_cast <void *>(
122+ auto sub_this = reinterpret_cast <void *>(
123123 reinterpret_cast <std::uintptr_t >(this ) + TableIndex * sizeof (std::uintptr_t ));
124124 const auto vtable = *reinterpret_cast <void ***>(sub_this);
125125#ifdef _MSC_VER
@@ -132,7 +132,7 @@ namespace omath::rev_eng
132132 template <std::size_t TableIndex, std::size_t Id, class ReturnType >
133133 ReturnType call_virtual_method (auto ... arg_list) const
134134 {
135- const void * sub_this = reinterpret_cast <const void *>(
135+ auto sub_this = reinterpret_cast <const void *>(
136136 reinterpret_cast <std::uintptr_t >(this ) + TableIndex * sizeof (std::uintptr_t ));
137137 const auto vtable = *reinterpret_cast <void * const * const *>(sub_this);
138138#ifdef _MSC_VER
You can’t perform that action at this time.
0 commit comments