File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ namespace fakeit {
59
59
60
60
DynamicProxy (C &inst) :
61
61
_instancePtr (&inst),
62
- _methodMocks (VTUtils::getVTSize<C>()),
62
+ _methodMocks (VTUtils::getVTSize<C>(), nullptr ),
63
63
_offsets (VTUtils::getVTSize<C>(), &funcIdNotStubbed),
64
64
_invocationHandlers (_methodMocks, _offsets) {
65
65
_originalVt.copyFrom (VirtualTable<C, baseclasses...>::getVTable (*_instancePtr));
@@ -95,10 +95,10 @@ namespace fakeit {
95
95
96
96
void Reset () {
97
97
_methodMocks = {};
98
- _methodMocks.resize (VTUtils::getVTSize<C>());
98
+ _methodMocks.resize (VTUtils::getVTSize<C>(), nullptr );
99
99
_members = {};
100
100
_offsets = {};
101
- _offsets.resize (VTUtils::getVTSize<C>());
101
+ _offsets.resize (VTUtils::getVTSize<C>(), &funcIdNotStubbed );
102
102
VirtualTable<C, baseclasses...>::getVTable (*_instancePtr).copyFrom (_originalVt);
103
103
}
104
104
You can’t perform that action at this time.
0 commit comments