Misc. clang static analyzer fixes

This commit is contained in:
Émilie Feral
2020-12-08 10:45:49 +01:00
committed by LeaNumworks
parent c3ceb0074f
commit fe4e2e3e9d
5 changed files with 5 additions and 1 deletions

View File

@@ -101,6 +101,7 @@ void TableCell::layoutSubviews(bool force) {
y = std::max<KDCoordinate>(y, height - k_separatorThickness - withMargin(accessorySize.height(), k_verticalMargin) - withMargin(subAccessorySize.height(), 0));
if (subAccessory) {
KDCoordinate subAccessoryHeight = std::min<KDCoordinate>(subAccessorySize.height(), height - y - k_separatorThickness - k_verticalMargin);
assert(accessory);
accessory->setFrame(KDRect(horizontalMargin, y, width - 2*horizontalMargin, subAccessoryHeight), force);
y += subAccessoryHeight;
}