浏览代码

LibRegex: Take the regex as a const reference in print_bytecode()

AnotherTest 4 年之前
父节点
当前提交
25d336bc27
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibRegex/RegexDebug.h

+ 1 - 1
Userland/Libraries/LibRegex/RegexDebug.h

@@ -55,7 +55,7 @@ public:
     }
 
     template<typename T>
-    void print_bytecode(Regex<T>& regex) const
+    void print_bytecode(const Regex<T>& regex) const
     {
         MatchState state;
         auto& bytecode = regex.parser_result.bytecode;