diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibPDF/Object.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<T, Object>) { #ifdef PDF_DEBUG @@ -71,7 +71,7 @@ public: } #endif - return NonnullRefPtr<T>(static_cast<T const&>(*this)); + return NonnullRefPtr<T>(static_cast<T&>(*this)); } virtual char const* type_name() const = 0; |