From: Alex Coyte Date: Mon, 2 Nov 2015 00:22:51 +0000 (+1100) Subject: make Automaton_Base ctor protected X-Git-Tag: v4.1.0^2~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=510e999738c2ae755b01e7300c19cac09f689bcc;p=thirdparty%2Fvectorscan.git make Automaton_Base ctor protected Makes explicit that Automaton_Base is intended to be used as a only base class --- diff --git a/src/nfagraph/ng_haig.cpp b/src/nfagraph/ng_haig.cpp index 7681fa14..78c615c9 100644 --- a/src/nfagraph/ng_haig.cpp +++ b/src/nfagraph/ng_haig.cpp @@ -114,7 +114,7 @@ void populateAccepts(const NGHolder &g, StateSet *accept, StateSet *acceptEod) { } class Automaton_Base { -public: +protected: Automaton_Base(const NGHolder &graph_in, const ue2::unordered_map &state_ids_in) : graph(graph_in), state_ids(state_ids_in) { @@ -122,6 +122,7 @@ public: assert(alphasize <= ALPHABET_SIZE); } +public: static bool canPrune(const flat_set &) { return false; } const NGHolder &graph;