Fixed build with GCC 13.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
This commit is contained in:
Vitaly Zaitsev 2023-02-06 11:23:57 +01:00 committed by John Preston
parent 6b6afd38ac
commit b48dee0af7
2 changed files with 7 additions and 6 deletions

View File

@ -79,7 +79,7 @@ struct NestedRestrictionLabels {
second.erase(
ranges::remove(
second,
Flag::CreateTopics,
Flag::CreateTopics | Flag(),
&RestrictionLabel::flags),
end(second));
}
@ -1002,7 +1002,7 @@ std::vector<AdminRightLabel> AdminRightLabels(
result.erase(
ranges::remove(
result,
Flag::ManageTopics,
Flag::ManageTopics | Flag(),
&AdminRightLabel::flags),
end(result));
}

View File

@ -355,6 +355,11 @@ protected:
int resizeGetHeight(int newWidth) override;
private:
using ScrollTopState = ListMemento::ScrollTopState;
using PointState = HistoryView::PointState;
using CursorState = HistoryView::CursorState;
using ChosenReaction = HistoryView::Reactions::ChosenReaction;
struct MouseState {
MouseState();
MouseState(
@ -405,10 +410,6 @@ private:
Selecting,
Deselecting,
};
using ScrollTopState = ListMemento::ScrollTopState;
using PointState = HistoryView::PointState;
using CursorState = HistoryView::CursorState;
using ChosenReaction = HistoryView::Reactions::ChosenReaction;
void onTouchSelect();
void onTouchScrollTimer();