Fix formatting of new(std::nothrow)
The code previously formatted everything as `new( std::nothrow)`.
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user