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/08 13:43:00 UTC

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

     [ https://issues.apache.org/jira/browse/MINIFICPP-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arpad Boda resolved MINIFICPP-1077.
-----------------------------------
    Fix Version/s: 0.7.0
       Resolution: Fixed

> 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
>            Priority: Major
>             Fix For: 0.7.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {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)