From 5307b809b3c516f130ce53d3043a3e7985197bc1 Mon Sep 17 00:00:00 2001 From: ars_goldendict Date: Tue, 5 May 2009 21:57:38 +0000 Subject: [PATCH] just a cleanup of redundant variable --- src/stardict.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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; }