1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:18:12 +00:00

LibWeb: Prevent copying CSS TokenStream

This was leading to confusing bugs where I was accidentally passing it
by value and then wondering why tokens weren't getting consumed!
This commit is contained in:
Sam Atkins 2021-11-10 17:05:03 +00:00 committed by Andreas Kling
parent 0da014befd
commit 50b15bdc1d

View file

@ -57,6 +57,8 @@ public:
explicit TokenStream(Vector<T> const&);
~TokenStream();
TokenStream(TokenStream<T> const&) = delete;
bool has_next_token();
T const& next_token();
T const& peek_token(int offset = 0);