Buddy is larger than a void*, so holding it in QLists is needlessly inefficient. Worse, the code could come to depend on the fragile property of (inefficient) QLists that references to elements therein never are invalidated. Fix by marking it movable, and holding it in a QVector instead. Since QVector requires a default ctor, drop the pointless existing ctor and use aggregate initialization instead. Use QVector's rvalue append. Change-Id: I696ca4f03dbe362a5438be209debbcd966fe8130 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> |
||
|---|---|---|
| .. | ||
| bootstrap | ||
| bootstrap-dbus | ||
| moc | ||
| qdbuscpp2xml | ||
| qdbusxml2cpp | ||
| qlalr | ||
| rcc | ||
| uic | ||