diff --git a/src/stardict.cc b/src/stardict.cc index a1d7efb3..4ac04eba 100644 --- a/src/stardict.cc +++ b/src/stardict.cc @@ -985,7 +985,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries( { vector< string > dictFiles( 1, *i ); - string idxFileName, dictFileName, synFileName, dictName; + string idxFileName, dictFileName, synFileName; findCorrespondingFiles( *i, idxFileName, dictFileName, synFileName ); @@ -1030,8 +1030,6 @@ vector< sptr< Dictionary::Class > > makeDictionaries( printf( "bookname = %s\n", ifo.bookname.c_str() ); printf( "wordcount = %u\n", ifo.wordcount ); - dictName = ifo.bookname; - initializing.indexingDictionary( ifo.bookname ); File::Class idx( indexFile, "wb" ); @@ -1100,10 +1098,10 @@ vector< sptr< Dictionary::Class > > makeDictionaries( // if no languages found, try dictionary's name if ( langs.first == 0 || langs.second == 0 ) { -// qDebug() << QString::fromStdString( dictName ); +// qDebug() << QString::fromStdString( ifo.bookname ); langs = - LangCoder::findIdsForFilename( QString::fromStdString( dictName ) ); + LangCoder::findIdsForFilename( QString::fromStdString( ifo.bookname ) ); idxHeader.langFrom = langs.first; idxHeader.langTo = langs.second; }