diff --git a/src/servers/app/CursorManager.cpp b/src/servers/app/CursorManager.cpp index e7da9bf92a..609cb0f17f 100644 --- a/src/servers/app/CursorManager.cpp +++ b/src/servers/app/CursorManager.cpp @@ -10,8 +10,6 @@ #include "CursorManager.h" -#include - #include "CursorData.h" #include "HaikuSystemCursor.h" #include "ServerCursor.h" @@ -22,6 +20,9 @@ #include #include +#include +#include + CursorManager::CursorManager() : BLocker("CursorManager") @@ -82,7 +83,7 @@ CursorManager::CreateCursor(team_id clientTeam, const uint8* cursorData) ServerCursor* cursor = _FindCursor(clientTeam, cursorData); if (!cursor) { - cursor = new (nothrow) ServerCursor(cursorData); + cursor = new (std::nothrow) ServerCursor(cursorData); if (cursor) { cursor->SetOwningTeam(clientTeam); if (AddCursor(cursor) < B_OK) {