zwoop commented on code in PR #12304:
URL: https://github.com/apache/trafficserver/pull/12304#discussion_r2161926795


##########
plugins/header_rewrite/ruleset.h:
##########
@@ -39,23 +39,44 @@ class RuleSet
 {
 public:
   // Holding the IF and ELSE operators and mods, in two separate linked lists.
-  struct OperatorPair {
-    OperatorPair() = default;
+  struct OperatorAndMods {
+    OperatorAndMods() = default;
 
-    OperatorPair(const OperatorPair &)            = delete;
-    OperatorPair &operator=(const OperatorPair &) = delete;
+    OperatorAndMods(const OperatorAndMods &)            = delete;
+    OperatorAndMods &operator=(const OperatorAndMods &) = delete;
 
     Operator     *oper      = nullptr;
     OperModifiers oper_mods = OPER_NONE;
   };
 
+  struct CondOpSection {
+    CondOpSection() = default;
+
+    ~CondOpSection()
+    {
+      delete ops.oper;
+      delete next;

Review Comment:
   This is a non issue IMO, if you have this many elif's, you're just wrong :).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to