mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
Cleanup the missing braced init list returns
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
parent
891c192ebc
commit
0503be65ae
3 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue