diff options
author | Kevin Ottens <kevin.ottens@nextcloud.com> | 2020-05-18 21:54:23 +0300 |
---|---|---|
committer | Michael Schuster <michael@schuster.ms> | 2020-05-20 04:54:41 +0300 |
commit | 712869db9a68025362798a4ff9ccc9f3e424a417 (patch) | |
tree | d29fb71b6a914e49bf770c5c623ef36f9018b145 /src/gui/folderwizard.cpp | |
parent | 3d2de4fc408320d362d05fc9258449f67faccc4c (diff) |
Use auto to avoiding repeating type names
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Diffstat (limited to 'src/gui/folderwizard.cpp')
-rw-r--r-- | src/gui/folderwizard.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/folderwizard.cpp b/src/gui/folderwizard.cpp index fce3dcf7f..1f51a3020 100644 --- a/src/gui/folderwizard.cpp +++ b/src/gui/folderwizard.cpp @@ -178,7 +178,7 @@ void FolderWizardRemotePath::slotAddRemoteFolder() parent = current->data(0, Qt::UserRole).toString(); } - QInputDialog *dlg = new QInputDialog(this); + auto *dlg = new QInputDialog(this); dlg->setWindowTitle(tr("Create Remote Folder")); dlg->setLabelText(tr("Enter the name of the new folder to be created below '%1':") @@ -199,7 +199,7 @@ void FolderWizardRemotePath::slotCreateRemoteFolder(const QString &folder) } fullPath += "/" + folder; - MkColJob *job = new MkColJob(_account, fullPath, this); + auto *job = new MkColJob(_account, fullPath, this); /* check the owncloud configuration file and query the ownCloud */ connect(job, static_cast<void (MkColJob::*)(QNetworkReply::NetworkError)>(&MkColJob::finished), this, &FolderWizardRemotePath::slotCreateRemoteFolderFinished); @@ -405,7 +405,7 @@ void FolderWizardRemotePath::slotTypedPathError(QNetworkReply *reply) LsColJob *FolderWizardRemotePath::runLsColJob(const QString &path) { - LsColJob *job = new LsColJob(_account, path, this); + auto *job = new LsColJob(_account, path, this); job->setProperties(QList<QByteArray>() << "resourcetype"); connect(job, &LsColJob::directoryListingSubfolders, this, &FolderWizardRemotePath::slotUpdateDirectories); @@ -435,7 +435,7 @@ bool FolderWizardRemotePath::isComplete() const Folder::Map map = FolderMan::instance()->map(); Folder::Map::const_iterator i = map.constBegin(); for (i = map.constBegin(); i != map.constEnd(); i++) { - Folder *f = static_cast<Folder *>(i.value()); + auto *f = static_cast<Folder *>(i.value()); if (f->accountState()->account() != _account) { continue; } @@ -480,7 +480,7 @@ void FolderWizardRemotePath::showWarn(const QString &msg) const FolderWizardSelectiveSync::FolderWizardSelectiveSync(const AccountPtr &account) { - QVBoxLayout *layout = new QVBoxLayout(this); + auto *layout = new QVBoxLayout(this); _selectiveSync = new SelectiveSyncWidget(account, this); layout->addWidget(_selectiveSync); } |