Github user arpadboda commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/455#discussion_r239140370
  
    --- Diff: libminifi/include/Exception.h ---
    @@ -60,16 +60,17 @@ class Exception : public std::exception {
      public:
       // Constructor
       /*!
    -   * Create a new flow record
    +   * Create a new exception
        */
    -  Exception(ExceptionType type, const char *errorMsg)
    +  Exception(ExceptionType type, std::string errorMsg)
           : _type(type),
    -        _errorMsg(errorMsg) {
    +        _errorMsg(std::move(errorMsg)) {
    --- End diff --
    
    As far as I remember that warning is only applied for return values, where 
moving could prevent copy-elision, but it's not the case. 


---

Reply via email to