]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
fixed some const issues
authorG.E <gregory.economou@vectorcamp.gr>
Tue, 23 Apr 2024 21:04:59 +0000 (00:04 +0300)
committerG.E <gregory.economou@vectorcamp.gr>
Tue, 23 Apr 2024 21:04:59 +0000 (00:04 +0300)
tools/hscheck/main.cpp

index 2c73baf55e3edebb15b616d37c66bf9a55216c5f..87bedf75b3f103c3ef92c76521ceb52561f1a87c 100644 (file)
@@ -97,12 +97,12 @@ unsigned int countFailures = 0;
 
 class ParsedExpr {
 public:
-    ParsedExpr(string regex_in, unsigned int flags_in, hs_expr_ext& ext_in)
+    ParsedExpr(string regex_in, unsigned int flags_in, const hs_expr_ext& ext_in)
         : regex(regex_in), flags(flags_in), ext(ext_in) {}
     ~ParsedExpr() {}
     string regex;
     unsigned int flags;
-    hs_expr_ext ext;
+    const hs_expr_ext& ext;
 };
 
 typedef map<unsigned int, ParsedExpr> ExprExtMap;