Mark free functions static where applicable

This commit is contained in:
WarmUpTill
2023-04-29 22:56:45 +02:00
committed by WarmUpTill
parent 5967c83b03
commit 443ffb7906
27 changed files with 99 additions and 94 deletions

View File

@@ -237,14 +237,14 @@ void MacroSegmentList::HideLastDropLine()
_dropLineIdx = -1;
}
bool isInUpperHalfOf(const QPoint &pos, const QRect &rect)
static bool isInUpperHalfOf(const QPoint &pos, const QRect &rect)
{
return QRect(rect.topLeft(),
QSize(rect.size().width(), rect.size().height() / 2))
.contains(pos);
}
bool widgetIsInLayout(QWidget *w, QLayout *l)
static bool widgetIsInLayout(QWidget *w, QLayout *l)
{
if (w == nullptr) {
return false;