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

@ -482,7 +482,7 @@ bool mxb_log_init(const char* ident,
filepath = std::string(logdir) + "/" + suffix;
}
this_unit.sMessage_registry.reset(new( std::nothrow) MessageRegistry);
this_unit.sMessage_registry.reset(new(std::nothrow) MessageRegistry);
switch (target)
{

View File

@ -108,7 +108,7 @@ std::unique_ptr<Logger> FileLogger::create(const std::string& filename)
if (fd != -1)
{
logger.reset(new( std::nothrow) FileLogger(fd, filename));
logger.reset(new(std::nothrow) FileLogger(fd, filename));
if (logger)
{

View File

@ -152,7 +152,7 @@ MessageQueue* MessageQueue::create(Handler* pHandler)
mxb_strerror(errno));
}
#endif
pThis = new( std::nothrow) MessageQueue(pHandler, read_fd, write_fd);
pThis = new(std::nothrow) MessageQueue(pHandler, read_fd, write_fd);
if (!pThis)
{

View File

@ -487,7 +487,7 @@ bool Worker::execute(function<void ()> func, mxb::Semaphore* pSem, execute_mode_
};
bool rval = false;
CustomTask* task = new( std::nothrow) CustomTask(func);
CustomTask* task = new(std::nothrow) CustomTask(func);
if (task)
{