]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
rdfa: make getImplAlphaSize() inline
authorJustin Viiret <justin.viiret@intel.com>
Thu, 10 Aug 2017 00:53:39 +0000 (10:53 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Mon, 18 Sep 2017 03:25:52 +0000 (13:25 +1000)
src/nfa/rdfa.cpp
src/nfa/rdfa.h

index 077ff9ed6223fc1d721b0512d56f5de90818e673..ae857b6af2333cb1a8e72f2564004308efc06229 100644 (file)
@@ -33,10 +33,6 @@ namespace ue2 {
 // prevent weak vtables
 raw_dfa::~raw_dfa() {}
 
-u16 raw_dfa::getImplAlphaSize() const {
-    return alpha_size - N_SPECIAL_SYMBOL;
-}
-
 void raw_dfa::stripExtraEodReports(void) {
     /* if a state generates a given report as a normal accept - then it does
      * not also need to generate an eod report for it */
index 0936fb15aca2bbde63d57bb80e77b5e46f35712e..6b994e4f2f3ae82fdc830aa1a479aac1ee9a148a 100644 (file)
@@ -81,7 +81,7 @@ struct raw_dfa {
     explicit raw_dfa(nfa_kind k) : kind(k) {}
     virtual ~raw_dfa();
 
-    u16 getImplAlphaSize() const;
+    u16 getImplAlphaSize() const { return alpha_size - N_SPECIAL_SYMBOL; }
     virtual void stripExtraEodReports(void);
     bool hasEodReports(void) const;
 };