Removed void function parameters.
Deprecated NULL macro was replaced to the nullptr literal.