refactor: fix clang-tidy auto*, const&, and curly braces (#5083)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user