NOISSUE simplify ProblemProvider
This commit is contained in:
parent
2c1ca040f8
commit
3ed990861a
3 changed files with 8 additions and 24 deletions
|
@ -7,23 +7,8 @@ enum class ProblemSeverity
|
|||
Error
|
||||
};
|
||||
|
||||
class PatchProblem
|
||||
struct PatchProblem
|
||||
{
|
||||
public:
|
||||
PatchProblem(ProblemSeverity severity, const QString & description)
|
||||
{
|
||||
m_severity = severity;
|
||||
m_description = description;
|
||||
}
|
||||
const QString & getDescription() const
|
||||
{
|
||||
return m_description;
|
||||
}
|
||||
const ProblemSeverity getSeverity() const
|
||||
{
|
||||
return m_severity;
|
||||
}
|
||||
private:
|
||||
ProblemSeverity m_severity;
|
||||
QString m_description;
|
||||
};
|
||||
|
@ -52,7 +37,7 @@ public:
|
|||
{
|
||||
m_problemSeverity = severity;
|
||||
}
|
||||
m_problems.append(PatchProblem(severity, description));
|
||||
m_problems.append({severity, description});
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue