Skip to content

Commit

Permalink
Refactor variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Jan 21, 2020
1 parent 0d1b6b8 commit 500477b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/dialogs/settingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2263,10 +2263,8 @@ void SettingsDialog::setupNoteFolderPage() {
// populate the note folder list
if (noteFoldersCount > 0) {
Q_FOREACH(NoteFolder noteFolder, noteFolders) {
QListWidgetItem *item =
new QListWidgetItem(noteFolder.getName());
item->setData(Qt::UserRole,
noteFolder.getId());
auto *item = new QListWidgetItem(noteFolder.getName());
item->setData(Qt::UserRole, noteFolder.getId());
ui->noteFolderListWidget->addItem(item);
}

Expand Down

0 comments on commit 500477b

Please sign in to comment.