arpadboda commented on a change in pull request #635: WIP: MINIFICPP-819 - OPC
Unified Architecture Support
URL: https://github.com/apache/nifi-minifi-cpp/pull/635#discussion_r319023876
##########
File path: libminifi/include/core/Property.h
##########
@@ -174,6 +174,11 @@ class Property {
void addAllowedValue(const PropertyValue &value) {
allowed_values_.push_back(value);
}
+
+ void clearAllowedValues() {
Review comment:
So the reason I did this is allowed_values_ being stored in a vector, so
calling init twice would add the values twice.
The nice solution would be storing them in set in my opinion. What do you
think?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services