From 6f95e19881b6180f2c2dabfcec98f3dd2d45b7ba Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Wed, 20 Nov 2024 05:17:13 -0500 Subject: [PATCH] merge if decl --- src/dict/dsl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dict/dsl.cc b/src/dict/dsl.cc index ceb5499b..db8e8dc4 100644 --- a/src/dict/dsl.cc +++ b/src/dict/dsl.cc @@ -1734,8 +1734,8 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f } // Make sure it's not an abbreviation file. extSize of ".dsl" or ".dsl.dz" - int extSize = ( uncompressedDsl ? 4 : 7 ); - if ( (fileName.size() >= ( 5 + extSize )) && QByteArrayView( fileName ).chopped( extSize ).last( 5 ).compare( "_abrv", Qt::CaseInsensitive )) { + + if ( int extSize = ( uncompressedDsl ? 4 : 7 ); (fileName.size() >= ( 5 + extSize )) && QByteArrayView( fileName ).chopped( extSize ).last( 5 ).compare( "_abrv", Qt::CaseInsensitive )) { // It is, skip it continue; }