• Rémi Denis-Courmont's avatar
    Qt4: never assign qtu() to a variable · 41c3dd9b
    Rémi Denis-Courmont authored
    As far as I understand, this breaks C++ object scoping. qtu() creates
    a temporary anonymous QByteArray from its QString parameter. That array
    is destroyed at the end of the expression, thus the return value of
    qtu() becomes a dangling pointer.
    41c3dd9b
playlist_model.cpp 32.5 KB