Skip to content

Commit

Permalink
Minor reverts.
Browse files Browse the repository at this point in the history
  • Loading branch information
FranckRJ committed May 12, 2024
1 parent 788fa23 commit 6438b95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/mockutils/VTUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace fakeit {
}

template<typename C>
static size_t getVTSize() {
static unsigned int getVTSize() {
struct Derrived : public C {
virtual void endOfVt() {
}
Expand Down
6 changes: 3 additions & 3 deletions include/mockutils/mscpp/VirtualTable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ namespace fakeit {
}

void copyFrom(VirtualTable<C, baseclasses...> &from) {
auto size = VTUtils::getVTSize<C>();
unsigned int size = VTUtils::getVTSize<C>();
for (unsigned int i = 0; i < size; i++) {
_firstMethod[i] = from.getMethod(i);
}
Expand Down Expand Up @@ -234,7 +234,7 @@ namespace fakeit {
setCookie(dtorCookieIndex, method);
}

size_t getSize() {
unsigned int getSize() {
return VTUtils::getVTSize<C>();
}

Expand All @@ -256,7 +256,7 @@ namespace fakeit {
static const unsigned int dtorCookieIndex = numOfCookies - 1; // use the last cookie

static void **buildVTArray() {
auto vtSize = VTUtils::getVTSize<C>();
unsigned int vtSize = VTUtils::getVTSize<C>();
auto array = new void *[vtSize + numOfCookies + 1]{};
RTTICompleteObjectLocator<C, baseclasses...> *objectLocator = new RTTICompleteObjectLocator<C, baseclasses...>(
typeid(C));
Expand Down

0 comments on commit 6438b95

Please sign in to comment.