Shouldn't use pointers for these arguments here. Either pass by const reference or by value unless you need to return data out of the function or need the capability to pass NULL.