refactor: fix clang-tidy auto*, const&, and curly braces (#5083)

This commit is contained in:
pajlada
2024-01-14 17:54:52 +01:00
committed by GitHub
parent 292f9b9734
commit 5b6675abb4
78 changed files with 647 additions and 228 deletions
+2 -2
View File
@@ -373,7 +373,7 @@ void BaseWindow::mousePressEvent(QMouseEvent *event)
if (this->flags_.has(FramelessDraggable))
{
this->movingRelativePos = event->localPos();
if (auto widget =
if (auto *widget =
this->childAt(event->localPos().x(), event->localPos().y()))
{
std::function<bool(QWidget *)> recursiveCheckMouseTracking;
@@ -735,7 +735,7 @@ void BaseWindow::updateScale()
this->setScale(scale);
for (auto child : this->findChildren<BaseWidget *>())
for (auto *child : this->findChildren<BaseWidget *>())
{
child->setScale(scale);
}