szaszm commented on a change in pull request #1249:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1249#discussion_r798126300
##########
File path: extensions/standard-processors/processors/DefragmentText.cpp
##########
@@ -187,7 +187,7 @@ struct ReadFlowFileContent : public InputStreamCallback {
int64_t process(const std::shared_ptr<io::BaseStream> &stream) override {
content.resize(stream->size());
- const auto ret = stream->read(reinterpret_cast<uint8_t *>(content.data()),
stream->size());
+ const auto ret =
stream->read(gsl::make_span(reinterpret_cast<std::byte*>(content.data()),
stream->size()));
Review comment:
No particular reason, I just didn't realize at the beginning that there
is `as_span` and learned about it later. I'll change them.
--
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]