Creating an overlap function - FWeakObjectPtr?

Hey! I am in need of help for converting my overlap function. In 4.4, the console is telling me that I need a “FWeakObjectPtr” variable in the function. I was now wondering if someone could tell me what exactly this variable gives me, how i can use it and most importantly, what type of variable it is and how to implement it (sorry, I am still learning my C++ so this is something that I need to know):

UFUNCTION()
	void OnOverlap(class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool hasCollided, const FHitResult& Hit, const FWeakObjectPtr ?);

Use the following signature:

void OnOverlap(class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool fromSweep, const FHitResult& result);

It worked, thank you! So i don’t need FWeakObjectPtr…but then what does it do? Is it merely the information sent from the collider? Im still a bit confused tbh

I’d like to know this as well, I’ve seen this used in TArray declarations in places like Actor.h but I’m not really sure when I should be using this and what implications it has on garbage collection…