[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2023-09-02 04:24:55 +00:00 committed by GitHub
parent 4226abf593
commit c273622851
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -750,7 +750,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f
for ( const auto & fileName : fileNames ) { for ( const auto & fileName : fileNames ) {
// Skip files with the extensions different to .aar to speed up the // Skip files with the extensions different to .aar to speed up the
// scanning // scanning
if ( !Utils::endsWithIgnoreCase(fileName, ".aar" ) ) if ( !Utils::endsWithIgnoreCase( fileName, ".aar" ) )
continue; continue;
// Got the file -- check if we need to rebuid the index // Got the file -- check if we need to rebuid the index

View file

@ -75,7 +75,7 @@ bool indexIsOldOrBad( string const & indexFile )
string stripExtension( string const & str ) string stripExtension( string const & str )
{ {
if ( Utils::endsWithIgnoreCase(str, ".wav" ) ) if ( Utils::endsWithIgnoreCase( str, ".wav" ) )
return string( str, 0, str.size() - 4 ); return string( str, 0, str.size() - 4 );
else else
return str; 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 ) { for ( vector< string >::const_iterator i = fileNames.begin(); i != fileNames.end(); ++i ) {
/// Only allow .dat and .lsa extensions to save scanning time /// 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; continue;
try { try {

View file

@ -1272,7 +1272,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f
for ( const auto & fileName : fileNames ) { for ( const auto & fileName : fileNames ) {
// Skip files with the extensions different to .mdx to speed up the // Skip files with the extensions different to .mdx to speed up the
// scanning // scanning
if ( !Utils::endsWithIgnoreCase(fileName,".mdx")) if ( !Utils::endsWithIgnoreCase( fileName, ".mdx" ) )
continue; continue;
vector< string > dictFiles( 1, fileName ); vector< string > dictFiles( 1, fileName );