Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 26, 2024
1 parent 194e61c commit fc2351e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/dict/dsl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1604,8 +1604,8 @@ void DslResourceRequest::run()

string n = dict.getContainingFolder().toStdString() + Utils::Fs::separator() + resourceName;

auto fp =
Utils::Fs::findFirstExistingFile( {n, dict.getResourceDir1() + resourceName, dict.getResourceDir2() + resourceName} );
auto fp = Utils::Fs::findFirstExistingFile(
{ n, dict.getResourceDir1() + resourceName, dict.getResourceDir2() + resourceName } );
qDebug( "found dsl resource name is %s", fp.c_str() );
try {
try {
Expand Down Expand Up @@ -1707,11 +1707,11 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f
string baseName = ( fileName[ fileName.size() - 4 ] == '.' ) ? string( fileName, 0, fileName.size() - 4 ) :
string( fileName, 0, fileName.size() - 7 );

string abrvFileName = Utils::Fs::findFirstExistingFile( {baseName + "_abrv.dsl",
baseName + "_abrv.dsl.dz",
baseName + "_ABRV.DSL",
baseName + "_ABRV.DSL.DZ",
baseName + "_ABRV.DSL.dz" });
string abrvFileName = Utils::Fs::findFirstExistingFile( { baseName + "_abrv.dsl",
baseName + "_abrv.dsl.dz",
baseName + "_ABRV.DSL",
baseName + "_ABRV.DSL.DZ",
baseName + "_ABRV.DSL.dz" } );

//check empty string
if ( abrvFileName.size() ) {
Expand All @@ -1724,10 +1724,10 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f

// See if there's a zip file with resources present. If so, include it.

string zipFileName = Utils::Fs::findFirstExistingFile( {baseName + ".dsl.files.zip",
baseName + ".dsl.dz.files.zip",
baseName + ".DSL.FILES.ZIP",
baseName + ".DSL.DZ.FILES.ZIP" });
string zipFileName = Utils::Fs::findFirstExistingFile( { baseName + ".dsl.files.zip",
baseName + ".dsl.dz.files.zip",
baseName + ".DSL.FILES.ZIP",
baseName + ".DSL.DZ.FILES.ZIP" } );

if ( !zipFileName.empty() ) {
dictFiles.push_back( zipFileName );
Expand Down

0 comments on commit fc2351e

Please sign in to comment.