Fix build with GCC.

This commit is contained in:
John Preston 2022-02-28 23:25:03 +03:00
parent 2f425edd75
commit 5f3e04a319

View file

@ -219,7 +219,6 @@ void TitleControls::raise() {
}
HitTestResult TitleControls::hitTest(QPoint point, int padding) const {
const auto parent = _close->parentWidget()->geometry();
const auto test = [&](const object_ptr<Button> &button, bool close) {
return button && button->geometry().marginsAdded(
{ close ? padding : 0, padding, close ? padding : 0, 0 }