From 50de4a5e00aa22badc11332305069bdbfe88b19d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 6 Oct 2009 09:19:57 +0000 Subject: [PATCH] GCC4 fixes when compiling the test environment. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33453 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/drawing/DWindowHWInterface.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/servers/app/drawing/DWindowHWInterface.cpp b/src/servers/app/drawing/DWindowHWInterface.cpp index 325cd05a30..3c87701eee 100644 --- a/src/servers/app/drawing/DWindowHWInterface.cpp +++ b/src/servers/app/drawing/DWindowHWInterface.cpp @@ -333,9 +333,9 @@ DWindowHWInterface::DWindowHWInterface() fAccMoveCursor(NULL), fAccShowCursor(NULL), - fRectParams(new (nothrow) fill_rect_params[kDefaultParamsCount]), + fRectParams(new (std::nothrow) fill_rect_params[kDefaultParamsCount]), fRectParamsCount(kDefaultParamsCount), - fBlitParams(new (nothrow) blit_params[kDefaultParamsCount]), + fBlitParams(new (std::nothrow) blit_params[kDefaultParamsCount]), fBlitParamsCount(kDefaultParamsCount) { fDisplayMode.virtual_width = 800; @@ -797,7 +797,7 @@ DWindowHWInterface::GetModeList(display_mode** _modes, uint32* _count) // const uint32 colors[] = {B_CMAP8, B_RGB15, B_RGB16, B_RGB32}; uint32 count = resolutionCount/* * 4*/; - display_mode* modes = new(nothrow) display_mode[count]; + display_mode* modes = new(std::nothrow) display_mode[count]; if (modes == NULL) return B_NO_MEMORY; @@ -825,7 +825,7 @@ DWindowHWInterface::GetModeList(display_mode** _modes, uint32* _count) #else // support only a single mode, useful // for testing a specific mode - display_mode *modes = new(nothrow) display_mode[1]; + display_mode *modes = new(std::nothrow) display_mode[1]; modes[0].virtual_width = 800; modes[0].virtual_height = 600; modes[0].space = B_BRGB32; @@ -874,7 +874,7 @@ DWindowHWInterface::RetraceSemaphore() status_t -DWindowHWInterface::WaitForRetrace(bigtime_t timeout = B_INFINITE_TIMEOUT) +DWindowHWInterface::WaitForRetrace(bigtime_t timeout) { // Locking shouldn't be necessary here - R5 should handle this for us. :) BScreen screen;