mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:57:44 +00:00
AK: Rename RetainPtr => RefPtr and Retained => NonnullRefPtr.
This commit is contained in:
parent
77b9fa89dd
commit
90b1354688
188 changed files with 562 additions and 562 deletions
|
@ -1,7 +1,7 @@
|
|||
#include <WindowServer/WSCursor.h>
|
||||
#include <WindowServer/WSWindowManager.h>
|
||||
|
||||
WSCursor::WSCursor(Retained<GraphicsBitmap>&& bitmap, const Point& hotspot)
|
||||
WSCursor::WSCursor(NonnullRefPtr<GraphicsBitmap>&& bitmap, const Point& hotspot)
|
||||
: m_bitmap(move(bitmap))
|
||||
, m_hotspot(hotspot)
|
||||
{
|
||||
|
@ -11,17 +11,17 @@ WSCursor::~WSCursor()
|
|||
{
|
||||
}
|
||||
|
||||
Retained<WSCursor> WSCursor::create(Retained<GraphicsBitmap>&& bitmap)
|
||||
NonnullRefPtr<WSCursor> WSCursor::create(NonnullRefPtr<GraphicsBitmap>&& bitmap)
|
||||
{
|
||||
return adopt(*new WSCursor(move(bitmap), bitmap->rect().center()));
|
||||
}
|
||||
|
||||
Retained<WSCursor> WSCursor::create(Retained<GraphicsBitmap>&& bitmap, const Point& hotspot)
|
||||
NonnullRefPtr<WSCursor> WSCursor::create(NonnullRefPtr<GraphicsBitmap>&& bitmap, const Point& hotspot)
|
||||
{
|
||||
return adopt(*new WSCursor(move(bitmap), hotspot));
|
||||
}
|
||||
|
||||
RetainPtr<WSCursor> WSCursor::create(WSStandardCursor standard_cursor)
|
||||
RefPtr<WSCursor> WSCursor::create(WSStandardCursor standard_cursor)
|
||||
{
|
||||
switch (standard_cursor) {
|
||||
case WSStandardCursor::None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue