fix: simplify switch statement
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
a545f67a21
commit
76df836378
@ -591,10 +591,7 @@ QVariant PackProfile::data(const QModelIndex &index, int role) const
|
||||
}
|
||||
case Qt::DecorationRole:
|
||||
{
|
||||
switch(column)
|
||||
{
|
||||
case NameColumn:
|
||||
{
|
||||
if (column == NameColumn) {
|
||||
auto severity = patch->getProblemSeverity();
|
||||
switch (severity)
|
||||
{
|
||||
@ -606,13 +603,9 @@ QVariant PackProfile::data(const QModelIndex &index, int role) const
|
||||
return QVariant();
|
||||
}
|
||||
}
|
||||
default:
|
||||
{
|
||||
return QVariant();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user