Skip to content

Commit 0769d3d

Browse files
committed
replaced with auto
1 parent b6755e2 commit 0769d3d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/omath/rev_eng/internal_rev_object.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)