From 0999f386d29948e64621745238b1ca3fd9af9169 Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Wed, 20 Nov 2024 05:02:04 -0500 Subject: [PATCH] merge if --- src/dict/dsl.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dict/dsl.cc b/src/dict/dsl.cc index 2f9ac9fc..ceb5499b 100644 --- a/src/dict/dsl.cc +++ b/src/dict/dsl.cc @@ -1735,11 +1735,9 @@ 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 ) ) { - if ( QByteArrayView( fileName ).chopped( extSize ).last( 5 ).compare( "_abrv", Qt::CaseInsensitive ) ) { + if ( (fileName.size() >= ( 5 + extSize )) && QByteArrayView( fileName ).chopped( extSize ).last( 5 ).compare( "_abrv", Qt::CaseInsensitive )) { // It is, skip it continue; - } } unsigned atLine = 0; // Indicates current line in .dsl, for debug purposes