Skip to content

Prevent possible Qt container detachment

clang analyzer detected a location where a QList element could be detached. Following the example of KFileMetaData, qAsConst now prevents detachment.

Reference: https://invent.kde.org/frameworks/kfilemetadata/-/blob/master/tests/dump.cpp#L45

Edited by Sebastian Engel

Merge request reports