Remove unnecessary breaks in ActivityListModel
authorMichael Schuster <michael@schuster.ms>
Thu, 19 Dec 2019 19:15:40 +0000 (20:15 +0100)
committerMichael Schuster <48932272+misch7@users.noreply.github.com>
Thu, 19 Dec 2019 21:07:30 +0000 (22:07 +0100)
Signed-off-by: Michael Schuster <michael@schuster.ms>
src/gui/activitylistmodel.cpp

index cd544729bfac341cef362be810d43d017b63e16b..b5ee0c7253ff473fcb877e198c1579c1bd92ed47 100644 (file)
@@ -109,39 +109,30 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const
                }
         } else {
             actionIcon.iconType = ActivityIconType::iconActivity;
-               }
+        }
         QVariant icn;
         icn.setValue(actionIcon);
         return icn;
-        }
-        break;
+    }
     case ActivityItemDelegate::ObjectTypeRole:
         return a._objectType;
-        break;
     case ActivityItemDelegate::ActionRole:{
         QVariant type;
         type.setValue(a._type);
         return type;
-        break;
     }
     case ActivityItemDelegate::ActionTextRole:
         return a._subject;
-        break;
     case ActivityItemDelegate::MessageRole:
         return a._message;
-        break;
     case ActivityItemDelegate::LinkRole:
         return a._link;
-        break;
     case ActivityItemDelegate::AccountRole:
         return a._accName;
-        break;
     case ActivityItemDelegate::PointInTimeRole:
         return Utility::timeAgoInWords(a._dateTime);
-        break;
     case ActivityItemDelegate::AccountConnectedRole:
         return (ast && ast->isConnected());
-        break;
     default:
         return QVariant();
     }
@@ -266,7 +257,7 @@ void ActivityListModel::clearNotifications() {
 }
 
 void ActivityListModel::removeActivityFromActivityList(int row) {
-    Activity activity =  _finalList.at(row);
+    Activity activity = _finalList.at(row);
     removeActivityFromActivityList(activity);
     combineActivityLists();
 }