You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Arpad Boda (Jira)" <ji...@apache.org> on 2019/11/06 15:52:00 UTC

[jira] [Created] (MINIFICPP-1077) Linter should't warn on non-const references

Arpad Boda created MINIFICPP-1077:
-------------------------------------

             Summary: Linter should't warn on non-const references
                 Key: MINIFICPP-1077
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1077
             Project: Apache NiFi MiNiFi C++
          Issue Type: Improvement
    Affects Versions: 0.6.0
            Reporter: Arpad Boda
            Assignee: Arpad Boda


{code:java}
Is this a non-const reference? If so, make const or use a pointer: std::vector<char>& data  [runtime/references] [2] {code}

This warning doesn't seem to be justified, using raw ptrs instead of references to pass an out-arg to a function is not the right way of doing things in cpp by any means. 
This warnings should be disabled. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)