mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 03:14: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 ) {
|
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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
Loading…
Reference in a new issue