diff --git a/src/packet_analysis/Component.h b/src/packet_analysis/Component.h index 61986719f7..1a93e4cc76 100644 --- a/src/packet_analysis/Component.h +++ b/src/packet_analysis/Component.h @@ -17,7 +17,7 @@ using AnalyzerPtr = std::shared_ptr; class Component : public plugin::Component, public plugin::TaggedComponent { public: - typedef AnalyzerPtr (*factory_callback)(); + using factory_callback = std::function; Component(const std::string& name, factory_callback factory, Tag::subtype_t subtype = 0); ~Component() override = default;