浏览代码

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!
Sam Atkins 3 年之前
父节点
当前提交
50b15bdc1d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Userland/Libraries/LibWeb/CSS/Parser/Parser.h

+ 2 - 0
Userland/Libraries/LibWeb/CSS/Parser/Parser.h

@@ -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);