Skip to content

Commit

Permalink
opt: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Jan 4, 2025
1 parent 13b910a commit aa15301
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dict/utils/indexedzip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,13 @@ bool IndexedZip::indexFile( BtreeIndexing::IndexedWords & zipFileNames, quint32
// File seems to be a valid zip file
ZipFile::CentralDirEntry entry;

bool alreadyCounted;
if ( filesCount ) {
*filesCount = 0;
}

while ( ZipFile::readNextEntry( zip, entry ) ) {
if ( entry.compressionMethod == ZipFile::Unsupported ) {
qWarning( "Zip warning: compression method unsupported -- skipping file \"%s\"", entry.fileName.data() );
qWarning() << "Zip warning: compression method unsupported -- skipping file" << entry.fileName.data();
continue;
}

Expand Down

0 comments on commit aa15301

Please sign in to comment.