mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-17 23:04:06 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
parent
4226abf593
commit
c273622851
|
@ -750,7 +750,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f
|
|||
for ( const auto & fileName : fileNames ) {
|
||||
// Skip files with the extensions different to .aar to speed up the
|
||||
// scanning
|
||||
if ( !Utils::endsWithIgnoreCase(fileName, ".aar" ) )
|
||||
if ( !Utils::endsWithIgnoreCase( fileName, ".aar" ) )
|
||||
continue;
|
||||
|
||||
// Got the file -- check if we need to rebuid the index
|
||||
|
|
|
@ -75,7 +75,7 @@ bool indexIsOldOrBad( string const & indexFile )
|
|||
|
||||
string stripExtension( string const & str )
|
||||
{
|
||||
if ( Utils::endsWithIgnoreCase(str, ".wav" ) )
|
||||
if ( Utils::endsWithIgnoreCase( str, ".wav" ) )
|
||||
return string( str, 0, str.size() - 4 );
|
||||
else
|
||||
return str;
|
||||
|
@ -499,7 +499,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f
|
|||
|
||||
for ( vector< string >::const_iterator i = fileNames.begin(); i != fileNames.end(); ++i ) {
|
||||
/// Only allow .dat and .lsa extensions to save scanning time
|
||||
if ( !Utils::endsWithIgnoreCase(i->c_str(),".dat") &&!Utils::endsWithIgnoreCase(i->c_str(),".lsa") )
|
||||
if ( !Utils::endsWithIgnoreCase( i->c_str(), ".dat" ) && !Utils::endsWithIgnoreCase( i->c_str(), ".lsa" ) )
|
||||
continue;
|
||||
|
||||
try {
|
||||
|
|
|
@ -1272,7 +1272,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f
|
|||
for ( const auto & fileName : fileNames ) {
|
||||
// Skip files with the extensions different to .mdx to speed up the
|
||||
// scanning
|
||||
if ( !Utils::endsWithIgnoreCase(fileName,".mdx"))
|
||||
if ( !Utils::endsWithIgnoreCase( fileName, ".mdx" ) )
|
||||
continue;
|
||||
|
||||
vector< string > dictFiles( 1, fileName );
|
||||
|
|
Loading…
Reference in a new issue