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:
Ilya Fedin
2021-07-12 00:16:28 +04:00
committed by John Preston
parent 89765340c3
commit b6881022ce
9 changed files with 21 additions and 13 deletions
@@ -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;