diff --git a/alib2data/src/indexes/SuffixTrie.h b/alib2data/src/indexes/SuffixTrie.h index c7adc5791593628bc4e5ebf34297899a0a37baec..515eaaa95d3241eb98eb2ec1c5625635e23ce283 100644 --- a/alib2data/src/indexes/SuffixTrie.h +++ b/alib2data/src/indexes/SuffixTrie.h @@ -86,13 +86,17 @@ public: * Removes symbol from the alphabet of symbol available in the regular expression * @param symbol removed symbol from the alphabet */ - bool removeSymbolFromEdgeAlphabet ( const EdgeType & symbol ); + bool removeSymbolFromEdgeAlphabet ( const EdgeType & symbol ) { + return this->template accessComponent < EdgeAlphabet > ( ).remove ( symbol ); + } /** * Removes symbol from the alphabet of symbol available in the regular expression * @param symbol removed symbol from the alphabet */ - bool removeSymbolFromNodeAlphabet ( const NodeType & symbol ); + bool removeSymbolFromNodeAlphabet ( const NodeType & symbol ) { + return this->template accessComponent < NodeAlphabet > ( ).remove ( symbol ); + } /** * Prints XML representation of the tree to the output stream.