Fixed build for GCC 4, this closes bug #239.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16546 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
2990d21b82
commit
52cd65cdf4
@ -10,8 +10,6 @@
|
||||
|
||||
#include "CursorManager.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "CursorData.h"
|
||||
#include "HaikuSystemCursor.h"
|
||||
#include "ServerCursor.h"
|
||||
@ -22,6 +20,9 @@
|
||||
#include <Directory.h>
|
||||
#include <String.h>
|
||||
|
||||
#include <new>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user