szaszm commented on a change in pull request #1225:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1225#discussion_r768559940
##########
File path: libminifi/src/provenance/Provenance.cpp
##########
@@ -45,13 +45,13 @@ const char
*ProvenanceEventRecord::ProvenanceEventTypeStr[REPLAY + 1] = { "CREAT
ProvenanceEventRecord::ProvenanceEventRecord(ProvenanceEventRecord::ProvenanceEventType
event, std::string componentId, std::string componentType)
: core::SerializableComponent(core::getClassName<ProvenanceEventRecord>()),
- _entryDate(0),
- _lineageStartDate(0),
+ _entryDate(std::chrono::time_point<std::chrono::system_clock>()),
Review comment:
We could also just delete the line and let the default constructor be
called automatically.
--
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]