foo.join(QStringLiteral(" ")) -> foo.join(' ') The later form is better since it occupies less space in .rodata and doesn't use lambda