]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
make Automaton_Base ctor protected
authorAlex Coyte <a.coyte@intel.com>
Mon, 2 Nov 2015 00:22:51 +0000 (11:22 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Tue, 10 Nov 2015 03:25:05 +0000 (14:25 +1100)
Makes explicit that Automaton_Base is intended to be used as a only base class

src/nfagraph/ng_haig.cpp

index 7681fa146800dc90f1ebd2b9cfb4c05041f0589e..78c615c94ff511dc04c8e40f50b46acf634ecb70 100644 (file)
@@ -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<NFAVertex, u32> &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<ReportID> &) { return false; }
 
     const NGHolder &graph;