Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ottens <kevin.ottens@nextcloud.com>2020-05-27 21:19:15 +0300
committerCamila <smayres@gmail.com>2020-06-03 17:14:18 +0300
commit0503be65ae0a6694ea0de37643a64b5bfb7a0b3a (patch)
tree54fd176141a369bbea29220eca67a1a3c894dc8d /src/gui/folderstatusmodel.cpp
parent891c192ebcc275d49afe4c08c0729c8afa87e758 (diff)
Cleanup the missing braced init list returns
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
Diffstat (limited to 'src/gui/folderstatusmodel.cpp')
-rw-r--r--src/gui/folderstatusmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp
index 35bcd85e1..75838fbb1 100644
--- a/src/gui/folderstatusmodel.cpp
+++ b/src/gui/folderstatusmodel.cpp
@@ -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());