From 482b6d6a2667326bb4786677cf8264cec5499cfb Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周三, 26 5月 2021 14:35:59 +0800 Subject: [PATCH] automagically change the generator branch as the branch we're in. --- src/library/hw_identifier/default_strategy.cpp | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/library/hw_identifier/default_strategy.cpp b/src/library/hw_identifier/default_strategy.cpp index 2ca1aa4..5c924f1 100644 --- a/src/library/hw_identifier/default_strategy.cpp +++ b/src/library/hw_identifier/default_strategy.cpp @@ -67,9 +67,12 @@ } return identifiers; } - +/** +* default strategy should never be used to validate an identifier. The strategy that was used in the first place to generate it +* should handle it. DefaultStrategy is just a switch. +*/ LCC_EVENT_TYPE DefaultStrategy::validate_identifier(const HwIdentifier& identifier) const { - // default strategy should always realize itself as a concrete strategy + // return IDENTIFIERS_MISMATCH; } -- Gitblit v1.9.1