fix: remove for loop with most one iteration (#804)

* fix: remove `for` loop with most one iteration

* 🎨 apply clang-format changes

* fix: remove `for` loop with most one iteration

* fix: code smells

* 🎨 apply clang-format changes

---------

Co-authored-by: xiaoyifang <xiaoyifang@users.noreply.github.com>
This commit is contained in:
xiaoyifang 2023-06-03 20:51:38 +08:00 committed by GitHub
parent 85b2a98dec
commit 87e2091214
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 800 additions and 958 deletions

File diff suppressed because it is too large Load diff

View file

@ -255,6 +255,7 @@ private:
void changeWebEngineViewFont();
bool isWordPresentedInFavorites( QString const & word, unsigned groupId );
void errorMessageOnStatusBar( const QString & errStr );
private slots:
void hotKeyActivated( int );
@ -458,7 +459,7 @@ private slots:
void showFullTextSearchDialog();
void closeFullTextSearchDialog();
void clipboardChange(QClipboard::Mode m);
void clipboardChange( QClipboard::Mode m );
void inspectElement( QWebEnginePage * );
@ -475,7 +476,7 @@ class ArticleSaveProgressDialog : public QProgressDialog
Q_OBJECT
public:
explicit ArticleSaveProgressDialog( QWidget * parent = 0, Qt::WindowFlags f = Qt::Widget ):
explicit ArticleSaveProgressDialog( QWidget * parent = nullptr, Qt::WindowFlags f = Qt::Widget ):
QProgressDialog( parent, f )
{
setAutoReset( false );