mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Allow to build with -Werror and clang
Fixes -Wdeprecated-enum-enum-conversion, -Wdeprecated-declarations, -Wrange-loop-construct, -Winconsistent-missing-override
This commit is contained in:
@@ -127,11 +127,11 @@ ButtonBar::ButtonBar(
|
||||
if (children.empty()) {
|
||||
return;
|
||||
}
|
||||
const auto widgets = ranges::view::all(
|
||||
const auto widgets = ranges::views::all(
|
||||
children
|
||||
) | ranges::view::filter([](not_null<const QObject*> object) {
|
||||
) | ranges::views::filter([](not_null<const QObject*> object) {
|
||||
return object->isWidgetType();
|
||||
}) | ranges::view::transform([](not_null<QObject*> object) {
|
||||
}) | ranges::views::transform([](not_null<QObject*> object) {
|
||||
return static_cast<Ui::RpWidget*>(object.get());
|
||||
}) | ranges::to_vector;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user