Fix formatting of new(std::nothrow)
The code previously formatted everything as `new( std::nothrow)`.
This commit is contained in:
@ -243,7 +243,7 @@ PamClientSession* PamClientSession::create(const PamInstance& inst)
|
||||
MXS_ERROR("Failed to open SQLite3 handle.");
|
||||
}
|
||||
PamClientSession* rval = NULL;
|
||||
if (!dbhandle || (rval = new( std::nothrow) PamClientSession(dbhandle, inst)) == NULL)
|
||||
if (!dbhandle || (rval = new(std::nothrow) PamClientSession(dbhandle, inst)) == NULL)
|
||||
{
|
||||
sqlite3_close_v2(dbhandle);
|
||||
}
|
||||
|
||||
@ -67,7 +67,7 @@ PamInstance* PamInstance::create(char** options)
|
||||
|
||||
PamInstance* instance = NULL;
|
||||
if (!error
|
||||
&& ((instance = new( std::nothrow) PamInstance(dbhandle, pam_db_name, pam_table_name)) == NULL))
|
||||
&& ((instance = new(std::nothrow) PamInstance(dbhandle, pam_db_name, pam_table_name)) == NULL))
|
||||
{
|
||||
sqlite3_close_v2(dbhandle);
|
||||
}
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
static void* pam_backend_auth_alloc(void* instance)
|
||||
{
|
||||
PamBackendSession* pses = new( std::nothrow) PamBackendSession();
|
||||
PamBackendSession* pses = new(std::nothrow) PamBackendSession();
|
||||
return pses;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user