Skip to content
  • Arjen Hiemstra's avatar
    Do not use QStringView of a temporary · d5876529
    Arjen Hiemstra authored
    QString::mid() return a temporary QString. QStringView doesn't actually
    hold any reference to data, so the temporary gets deleted somewhere
    after we create the string view, which makes the string view invalid. So
    instead, use QStringRef here for which there is a separate method.
    d5876529