diff --git a/Userland/Libraries/LibPDF/Object.h b/Userland/Libraries/LibPDF/Object.h index e64458fa8f..0be2e9bee4 100644 --- a/Userland/Libraries/LibPDF/Object.h +++ b/Userland/Libraries/LibPDF/Object.h @@ -61,7 +61,7 @@ public: #ifdef PDF_DEBUG SourceLocation loc = SourceLocation::current() #endif - ) const + ) requires(!IsSame) { #ifdef PDF_DEBUG @@ -71,7 +71,7 @@ public: } #endif - return NonnullRefPtr(static_cast(*this)); + return NonnullRefPtr(static_cast(*this)); } virtual char const* type_name() const = 0;