I hate `auto`. This creates a QStringRref, not a QString, then crashes.
We can't pass a QStringRef to QUrl::fromLocalFile, this accepts a const QString& and then QStringRef will decay to a QString() but it's UB to hold a const ref to a temporary.
Please register or sign in to comment