Returning a reference to a list is not something we typically do (in part thanks to implicit sharing).
We seem to be only interested in whether it contains a certain id, so maybe we should have a hasDisplay(const QString &id)
instead?
Returning a reference to a list is not something we typically do (in part thanks to implicit sharing).
We seem to be only interested in whether it contains a certain id, so maybe we should have a hasDisplay(const QString &id)
instead?