Skip to content

Commit

Permalink
Fixing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Box-Coder committed Aug 28, 2024
1 parent a0a68e0 commit 06a8435
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Include_MultiHeaders/Macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ namespace CppOverride
INTERNAL_CO_OVERRIDE_IMPL_NO_RETURN_TYPE_PART_2(overrideObjName, this, args) \
INTERNAL_CO_OVERRIDE_IMPL_COMMON_PART_3(overrideObjName, void, this, args)

#define CO_OVERRIDE_IMPL_INSTNACE(overrideObjName, returnType, args) \
#define CO_OVERRIDE_IMPL_INSTANCE(overrideObjName, returnType, args) \
INTERNAL_CO_OVERRIDE_IMPL_COMMON_PART_1(overrideObjName, returnType, this, args) \
INTERNAL_CO_OVERRIDE_IMPL_NORMAL_PART_2(overrideObjName, returnType, this, args) \
INTERNAL_CO_OVERRIDE_IMPL_COMMON_PART_3(overrideObjName, returnType, this, args)
Expand Down
2 changes: 1 addition & 1 deletion Include_SingleHeader/CppOverride.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5405,7 +5405,7 @@ namespace CppOverride
INTERNAL_CO_OVERRIDE_IMPL_NO_RETURN_TYPE_PART_2(overrideObjName, this, args) \
INTERNAL_CO_OVERRIDE_IMPL_COMMON_PART_3(overrideObjName, void, this, args)

#define CO_OVERRIDE_IMPL_INSTNACE(overrideObjName, returnType, args) \
#define CO_OVERRIDE_IMPL_INSTANCE(overrideObjName, returnType, args) \
INTERNAL_CO_OVERRIDE_IMPL_COMMON_PART_1(overrideObjName, returnType, this, args) \
INTERNAL_CO_OVERRIDE_IMPL_NORMAL_PART_2(overrideObjName, returnType, this, args) \
INTERNAL_CO_OVERRIDE_IMPL_COMMON_PART_3(overrideObjName, returnType, this, args)
Expand Down
2 changes: 1 addition & 1 deletion Scripts/GenerateMockClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ void GenerateMockClass( const std::vector<ClassDetails>& classesDetails,
else
{
if(globalInstance)
std::cout << " CO_OVERRIDE_IMPL_INSTNACE(OverrideInstanceName, ";
std::cout << " CO_OVERRIDE_IMPL_INSTANCE(OverrideInstanceName, ";
else
std::cout << " CO_OVERRIDE_IMPL(OverrideInstanceName, ";

Expand Down
34 changes: 17 additions & 17 deletions Tests/Components/GlobalInstanceMockShapes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ class MockShape
public:
virtual inline float GetArea(float arg0 = 1.f) const
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, float, (arg0));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, float, (arg0));
return float();
}

virtual inline float GetPerimeter(float arg0 = 1.f) const
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, float, (arg0));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, float, (arg0));
return float();
}

Expand All @@ -32,25 +32,25 @@ class MockSquare : public Shape
public:
template < typename T2 > inline std::tuple < float , T2 > TestTemplateFunc(const std::tuple < float , T2 > & arg0, float arg1 = 1.f)
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, (std::tuple < float , T2 >), (arg0, arg1));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, (std::tuple < float , T2 >), (arg0, arg1));
return std::tuple < float , T2 >();
}

inline void TestComplexTypes(std::tuple < int , char > arg0, float arg1 = 1.f)
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, void, (arg0, arg1));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, void, (arg0, arg1));
return void();
}

inline bool operator==(const Square < T > & arg0) const
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, bool, (arg0));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, bool, (arg0));
return bool();
}

inline bool operator!=(const Square < T > & arg0) const
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, bool, (arg0));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, bool, (arg0));
return bool();
}

Expand All @@ -66,67 +66,67 @@ class MockSquare : public Shape

inline virtual float GetArea(float arg0 = 1.f) const override
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, float, (arg0));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, float, (arg0));
return float();
}

inline virtual float GetPerimeter(float arg0 = 1.f) const override
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, float, (arg0));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, float, (arg0));
return float();
}

inline virtual void SetWidth(float arg0)
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, void, (arg0));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, void, (arg0));
return void();
}

inline virtual void SetWidth(int arg0)
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, void, (arg0));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, void, (arg0));
return void();
}

inline virtual float GetWidth(float arg0 = 1.f) const
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, float, (arg0));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, float, (arg0));
return float();
}

inline virtual void GetWidth(float& arg0, float arg1 = 1.f)
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, void, (arg0, arg1));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, void, (arg0, arg1));
return void();
}

inline virtual void GetWidth(float* arg0, float arg1 = 1.f) const
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, void, (arg0, arg1));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, void, (arg0, arg1));
return void();
}

inline virtual void SetMetaData(T arg0)
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, void, (arg0));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, void, (arg0));
return void();
}

inline virtual T GetMetaData() const
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, T, ());
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, T, ());
return T();
}

inline virtual void GetMetaData(T& arg0) const
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, void, (arg0));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, void, (arg0));
return void();
}

inline virtual void GetMetaData(T* arg0) const
{
CO_OVERRIDE_IMPL_INSTNACE(OverrideObj, void, (arg0));
CO_OVERRIDE_IMPL_INSTANCE(OverrideObj, void, (arg0));
return void();
}

Expand Down

0 comments on commit 06a8435

Please sign in to comment.