Fix header and add std namespace to nothrow.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28985 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2009-01-23 01:21:27 +00:00
parent a0a4211e6d
commit eff61480cc
@@ -1,6 +1,6 @@
// String.cpp
#include <new.h>
#include <new>
#include <string.h>
#include "String.h"
@@ -132,7 +132,7 @@ String::_SetTo(const char *string, int32 length)
bool result = true;
Unset();
if (string && length > 0) {
fString = new(nothrow) char[length + 1];
fString = new(std::nothrow) char[length + 1];
if (fString) {
memcpy(fString, string, length);
fString[length] = '\0';