From fc2351e6653691863a047326b08ad7dd672e308c Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Thu, 26 Dec 2024 09:54:31 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- src/dict/dsl.cc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/dict/dsl.cc b/src/dict/dsl.cc index 90f56ed68..8fa3cdc55 100644 --- a/src/dict/dsl.cc +++ b/src/dict/dsl.cc @@ -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 { @@ -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() ) { @@ -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 );