[ 
https://issues.apache.org/jira/browse/MINIFICPP-676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16688649#comment-16688649
 ] 

ASF GitHub Bot commented on MINIFICPP-676:
------------------------------------------

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

    https://github.com/apache/nifi-minifi-cpp/pull/440#discussion_r234006270
  
    --- Diff: extensions/http-curl/client/HTTPStream.h ---
    @@ -100,14 +100,14 @@ class HttpStream : public io::BaseStream {
        * @param buflen buffer to write
        *
        */
    -  virtual int writeData(std::vector<uint8_t> &buf, int buflen);
    +  virtual int writeData(const std::vector<uint8_t> &buf, int buflen);
    --- End diff --
    
    Same. C and C++ developers see const and they know what that means. They 
see the lack of const and know their data may change. If it's non const that 
doesn't mean it should be changed without discussion. I think these should be 
non const as we reserve the right to take ownership in the internal API. I 
would agree for external API.


> Cleanup and fix serializable interface implementation
> -----------------------------------------------------
>
>                 Key: MINIFICPP-676
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-676
>             Project: NiFi MiNiFi C++
>          Issue Type: Improvement
>            Reporter: Arpad Boda
>            Assignee: Arpad Boda
>            Priority: Minor
>
> Serializable interface contains a couple of issues:
> Type-unsafe template functions
> Code duplication
> Needless functions
> The goal of this ticket is to make the interface cleaner and simpler. 
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to