Cleanup the missing braced init list returns

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-05-27 20:19:15 +02:00 committed by Camila
parent 891c192ebc
commit 0503be65ae
3 changed files with 3 additions and 2 deletions

View file

@ -3,6 +3,7 @@ Checks: '-*,
modernize-make-shared,
modernize-redundant-void-arg,
modernize-replace-*,
modernize-return-braced-init-list,
modernize-shrink-to-fit,
modernize-use-auto,
modernize-use-bool-literals,

View file

@ -483,7 +483,7 @@ QModelIndex FolderStatusModel::index(int row, int column, const QModelIndex &par
return {};
case RootFolder:
if (_folders.count() <= parent.row())
return QModelIndex(); // should not happen
return {}; // should not happen
return createIndex(row, column, const_cast<SubFolderInfo *>(&_folders[parent.row()]));
case SubFolder: {
auto pinfo = static_cast<SubFolderInfo *>(parent.internalPointer());

View file

@ -57,7 +57,7 @@ public:
bool checkAccountExists(bool openSettings);
static void raiseDialog(QWidget *raiseWidget);
static QSize settingsDialogSize() { return QSize(800, 500); }
static QSize settingsDialogSize() { return {800, 500}; }
void setupOverlayIcons();
#ifdef WITH_LIBCLOUDPROVIDERS
void setupCloudProviders();