mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
Fix a problem with zip archive indexing where files with similar names could clash.
This commit is contained in:
parent
d5e03ae635
commit
0ab5ae44a7
|
@ -968,12 +968,8 @@ void IndexedWords::addWord( wstring const & word, uint32_t articleOffset )
|
|||
|
||||
void IndexedWords::addSingleWord( wstring const & word, uint32_t articleOffset )
|
||||
{
|
||||
vector< WordArticleLink > links( 1, WordArticleLink( Utf8::encode( word ),
|
||||
articleOffset ) );
|
||||
|
||||
insert(
|
||||
IndexedWords::value_type(
|
||||
Utf8::encode( Folding::apply( word ) ), links ) );
|
||||
operator []( Utf8::encode( Folding::apply( word ) ) ).push_back(
|
||||
WordArticleLink( Utf8::encode( word ), articleOffset ) );
|
||||
}
|
||||
|
||||
IndexInfo buildIndex( IndexedWords const & indexedWords, File::Class & file )
|
||||
|
|
Loading…
Reference in a new issue