Favor pointers over references

The use of a pointer instead of a reference conveys the message that the
lifetime of the object being pointed can, and most likely will, exceed the
lifetime of the function.

Also shuffled the member variables and internal functions around and
removed unneeded function declarations.
This commit is contained in:
Markus Mäkelä
2017-03-27 18:05:47 +03:00
parent 02796e7304
commit b9fae58891
5 changed files with 52 additions and 52 deletions

View File

@ -187,7 +187,7 @@ SchemaRouter* SchemaRouter::create(SERVICE* pService, char** pzOptions)
SchemaRouterSession* SchemaRouter::newSession(MXS_SESSION* pSession)
{
return new SchemaRouterSession(pSession, *this);
return new SchemaRouterSession(pSession, this);
}
void SchemaRouter::diagnostics(DCB* dcb)