mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:17:34 +00:00
LibPDF: Make Object::cast<T>() non-const
This was only ever used to cast non-const objects to other non-const object types.
This commit is contained in:
parent
87e26d2fa4
commit
39a1702c99
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ public:
|
||||||
#ifdef PDF_DEBUG
|
#ifdef PDF_DEBUG
|
||||||
SourceLocation loc = SourceLocation::current()
|
SourceLocation loc = SourceLocation::current()
|
||||||
#endif
|
#endif
|
||||||
) const
|
)
|
||||||
requires(!IsSame<T, Object>)
|
requires(!IsSame<T, Object>)
|
||||||
{
|
{
|
||||||
#ifdef PDF_DEBUG
|
#ifdef PDF_DEBUG
|
||||||
|
@ -71,7 +71,7 @@ public:
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return NonnullRefPtr<T>(static_cast<T const&>(*this));
|
return NonnullRefPtr<T>(static_cast<T&>(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual char const* type_name() const = 0;
|
virtual char const* type_name() const = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue