diff --git a/src/uvw/resource.hpp b/src/uvw/resource.hpp index 610d4786..f906a10d 100644 --- a/src/uvw/resource.hpp +++ b/src/uvw/resource.hpp @@ -60,15 +60,15 @@ protected: } void leak() noexcept { - ptr = this->shared_from_this(); + sPtr = this->shared_from_this(); } void reset() noexcept { - ptr.reset(); + sPtr.reset(); } bool self() const noexcept { - return static_cast(ptr); + return static_cast(sPtr); } public: @@ -126,7 +126,7 @@ public: private: std::shared_ptr userData{nullptr}; - std::shared_ptr ptr{nullptr}; + std::shared_ptr sPtr{nullptr}; std::shared_ptr pLoop; U resource; };