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

View File

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