QString replace to std string where possible, intermediate commit