prefer initialization of attribute inline
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Fri, 3 Feb 2023 17:47:44 +0000 (18:47 +0100)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Mon, 6 Feb 2023 10:55:08 +0000 (10:55 +0000)
done with clang-tidy

run-clang-tidy -p build -config="{Checks: '*', CheckOptions: [{key: UseAssignment, value: true}]}" -checks='-*,modernize-use-default-member-init' -fix

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/selectivesyncdialog.cpp

index 33ad4c064ae03bbc25cf73b2678e0f9ffbbbd25c..692306e4bde5b759a887082f7f53b7c2b67f19cb 100644 (file)
@@ -481,7 +481,6 @@ qint64 SelectiveSyncWidget::estimatedSize(QTreeWidgetItem *root)
 SelectiveSyncDialog::SelectiveSyncDialog(AccountPtr account, Folder *folder, QWidget *parent, Qt::WindowFlags f)
     : QDialog(parent, f)
     , _folder(folder)
-    , _okButton(nullptr) // defined in init()
 {
     bool ok = false;
     init(account);