mirror of
https://github.com/yanyiwu/cppjieba.git
synced 2025-07-18 00:00:12 +08:00
[enhancement issue]: https://github.com/yanyiwu/nodejieba/issues/39
This commit is contained in:
parent
1babe57ebc
commit
19bb124b3e
@ -32,10 +32,8 @@ class DictTrie {
|
|||||||
init(dictPath, userDictPath);
|
init(dictPath, userDictPath);
|
||||||
}
|
}
|
||||||
~DictTrie() {
|
~DictTrie() {
|
||||||
if(trie_) {
|
|
||||||
delete trie_;
|
delete trie_;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void init(const string& dictPath, const string& userDictPath = "") {
|
void init(const string& dictPath, const string& userDictPath = "") {
|
||||||
if(trie_ != NULL) {
|
if(trie_ != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user