mirror of
https://github.com/transmission/transmission.git
synced 2025-12-27 13:41:17 +00:00
refactor: re-enable some clang-tidy checks in qt/ (#2585)
* chore: re-enable readability-static-accessed-through-instance test in qt * chore: re-enable clang-diagnostic-nonportable-system-include-path check in qt/ * chore: re-enable clang-diagnostic-undefined-reinterpret-cast test in qt/ * chore: re-enable cert-err58-cpp check in qt/ * chore: re-enable clang-diagnostic-switch-enum check in qt/ * chore: re-enable modernize-return-braced-init-list check in qt/ * chore: re-enable cppcoreguidelines-pro-type-static-cast-downcast check in qt/ * chore: re-enable cppcoreguidelines-pro-type-cstyle-cast check in qt/ * refactor: re-enable cppcoreguidelines-init-variables check in qt/ * chore: re-enable cppcoreguidelines-pro-type-vararg check in qt/ * chore: remove explicit disable of clang-diagnostic-old-style-cast check in qt/ * chore: re-enable bugprone-implicit-widening-of-multiplication-result check in qt/
This commit is contained in:
@@ -32,7 +32,7 @@ public:
|
||||
|
||||
QRect const label_rect = style()->subElementRect(QStyle::SE_HeaderLabel, &option, this);
|
||||
|
||||
return QSize(100, fontMetrics().height() + (option.rect.height() - label_rect.height()));
|
||||
return { 100, fontMetrics().height() + (option.rect.height() - label_rect.height()) };
|
||||
}
|
||||
|
||||
protected:
|
||||
@@ -53,7 +53,7 @@ protected:
|
||||
|
||||
void mouseDoubleClickEvent(QMouseEvent* /*event*/) override
|
||||
{
|
||||
emit static_cast<TorrentView*>(parent())->headerDoubleClicked();
|
||||
emit dynamic_cast<TorrentView*>(parent())->headerDoubleClicked();
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user