While you're fixing the above, please use constData() instead of data() :).