From 174a45cfe7ffb8f7c4cc0d8941bf0dd4d0f96f4b Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 24 Feb 2026 15:23:22 -0500 Subject: [PATCH] Use rcp instead of rcp where possible --- include/rcp.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/rcp.h b/include/rcp.h index feb4db6..ca010bb 100644 --- a/include/rcp.h +++ b/include/rcp.h @@ -52,7 +52,7 @@ public: } } - rcp & operator=(const rcp & other) + rcp & operator=(const rcp & other) { if (ptr != other.ptr) { @@ -75,7 +75,7 @@ public: other.ptr = nullptr; } - rcp & operator=(rcp && other) noexcept + rcp & operator=(rcp && other) noexcept { if (ptr != other.ptr) { @@ -132,12 +132,12 @@ public: return ptr != nullptr; } - bool operator==(const rcp & other) const + bool operator==(const rcp & other) const { return ptr == other.ptr; } - bool operator!=(const rcp & other) const + bool operator!=(const rcp & other) const { return ptr != other.ptr; } @@ -153,7 +153,7 @@ public: } template - static rcp create(Args&&... args) + static rcp create(Args&&... args) { return T::create(std::forward(args)...); }