Skip to content

Commit

Permalink
rename arg to avoid shadowing member
Browse files Browse the repository at this point in the history
this triggered C4458 in the pyunrealsdk build
not sure why it didn't break our build
  • Loading branch information
apple1417 committed Sep 22, 2024
1 parent ef303f5 commit 39a4111
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/unrealsdk/unreal/structs/fscriptdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ UObject* FScriptDelegate::get_object(void) const {
return this->object;
}

void FScriptDelegate::set_object(UObject* object) {
this->object = object;
void FScriptDelegate::set_object(UObject* obj) {
this->object = obj;
}

#else
Expand Down
2 changes: 1 addition & 1 deletion src/unrealsdk/unreal/structs/fscriptdelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ struct FScriptDelegate {
*
* @param object The object.
*/
void set_object(UObject* object);
void set_object(UObject* obj);

/**
* @brief Tries to convert this delegate to a bound function.
Expand Down

0 comments on commit 39a4111

Please sign in to comment.