mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +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:
parent
0da014befd
commit
50b15bdc1d
Notes:
sideshowbarker
2024-07-18 01:02:46 +09:00
Author: https://github.com/AtkinsSJ
Commit: 50b15bdc1d
Pull-request: https://github.com/SerenityOS/serenity/pull/10946
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue