changed signature to take qstring rather that char so that we no longer get a warning