summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPDF
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-02-20 15:23:52 +0100
committerAndreas Kling <kling@serenityos.org>2023-02-21 00:54:04 +0100
commit39a1702c99faa7263bb217eaab67b716beadbcc5 (patch)
tree939e8e4c68fb97f7b832d20090166ad1278e757b /Userland/Libraries/LibPDF
parent87e26d2fa48d077e43c215c51f5494dd2ca578e2 (diff)
downloadserenity-39a1702c99faa7263bb217eaab67b716beadbcc5.zip
LibPDF: Make Object::cast<T>() non-const
This was only ever used to cast non-const objects to other non-const object types.
Diffstat (limited to 'Userland/Libraries/LibPDF')
-rw-r--r--Userland/Libraries/LibPDF/Object.h4
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;