From c273622851601ed7ddf69f103afa0ccacee1dc58 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 2 Sep 2023 04:24:55 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- src/dict/aard.cc | 2 +- src/dict/lsa.cc | 4 ++-- src/dict/mdx.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dict/aard.cc b/src/dict/aard.cc index 77df1e3a..4aefd3b1 100644 --- a/src/dict/aard.cc +++ b/src/dict/aard.cc @@ -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 diff --git a/src/dict/lsa.cc b/src/dict/lsa.cc index a17f6187..5eb5ab97 100644 --- a/src/dict/lsa.cc +++ b/src/dict/lsa.cc @@ -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 { diff --git a/src/dict/mdx.cc b/src/dict/mdx.cc index 6ab44439..f2b8d5c2 100644 --- a/src/dict/mdx.cc +++ b/src/dict/mdx.cc @@ -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 );