szaszm commented on code in PR #2040:
URL: https://github.com/apache/nifi-minifi-cpp/pull/2040#discussion_r2436655102


##########
libminifi/include/core/state/UpdatePolicy.h:
##########
@@ -94,7 +89,7 @@ class UpdatePolicy {
 class UpdatePolicyBuilder {
  public:
   static std::unique_ptr<UpdatePolicyBuilder> newBuilder(bool enable_all = 
false) {
-    std::unique_ptr<UpdatePolicyBuilder> policy = 
std::unique_ptr<UpdatePolicyBuilder>( new UpdatePolicyBuilder(enable_all));
+    std::unique_ptr<UpdatePolicyBuilder> policy = 
std::unique_ptr<UpdatePolicyBuilder>( new UpdatePolicyBuilder(enable_all));  // 
NOLINT(clang-analyzer-cplusplus.NewDeleteLeaks)

Review Comment:
   You're right, I mixed them up. Would it be feasible to enable public move of 
UpdatePolicyBuilder, and make the change I suggested above?



-- 
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