Fix formatting of new(std::nothrow)

The code previously formatted everything as `new( std::nothrow)`.
This commit is contained in:
Markus Mäkelä
2018-10-04 21:40:34 +03:00
parent 1af43d4ff5
commit 75ea1b6ea1
47 changed files with 109 additions and 110 deletions

View File

@ -237,7 +237,7 @@ int handle_client(void* cls,
{
if (*con_cls == NULL)
{
if ((*con_cls = new( std::nothrow) Client(connection)) == NULL)
if ((*con_cls = new(std::nothrow) Client(connection)) == NULL)
{
return MHD_NO;
}
@ -335,7 +335,7 @@ static char* load_cert(const char* file)
struct stat st;
if (stat(file, &st) == 0
&& (rval = new( std::nothrow) char[st.st_size + 1]))
&& (rval = new(std::nothrow) char[st.st_size + 1]))
{
infile.read(rval, st.st_size);
rval[st.st_size] = '\0';