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:
|
case Qt::DecorationRole:
|
||||||
{
|
{
|
||||||
switch(column)
|
if (column == NameColumn) {
|
||||||
{
|
|
||||||
case NameColumn:
|
|
||||||
{
|
|
||||||
auto severity = patch->getProblemSeverity();
|
auto severity = patch->getProblemSeverity();
|
||||||
switch (severity)
|
switch (severity)
|
||||||
{
|
{
|
||||||
@ -606,13 +603,9 @@ QVariant PackProfile::data(const QModelIndex &index, int role) const
|
|||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
default:
|
|
||||||
{
|
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user