gcc 4 fixes.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29602 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-03-18 22:43:47 +00:00
parent 5ef44d9bfc
commit 98092e9867
13 changed files with 54 additions and 41 deletions
+3 -3
View File
@@ -1877,7 +1877,7 @@ cache_start_transaction(void* _cache)
cache->last_transaction->id);
}
cache_transaction* transaction = new(nothrow) cache_transaction;
cache_transaction* transaction = new(std::nothrow) cache_transaction;
if (transaction == NULL)
return B_NO_MEMORY;
@@ -2096,7 +2096,7 @@ cache_detach_sub_transaction(void* _cache, int32 id,
return B_BAD_VALUE;
// create a new transaction for the sub transaction
cache_transaction* newTransaction = new(nothrow) cache_transaction;
cache_transaction* newTransaction = new(std::nothrow) cache_transaction;
if (transaction == NULL)
return B_NO_MEMORY;
@@ -2466,7 +2466,7 @@ block_cache_delete(void* _cache, bool allowWrites)
void*
block_cache_create(int fd, off_t numBlocks, size_t blockSize, bool readOnly)
{
block_cache* cache = new(nothrow) block_cache(fd, numBlocks, blockSize,
block_cache* cache = new(std::nothrow) block_cache(fd, numBlocks, blockSize,
readOnly);
if (cache == NULL)
return NULL;