diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-07-29 08:43:34 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-08-28 22:09:53 +0200 |
commit | 3ed990861a52f090d355555d5f5d3b76a9b4608c (patch) | |
tree | 9a576eb99976aae968a0ae66aae43035fa538ba3 /api/logic/ProblemProvider.h | |
parent | 2c1ca040f84e8126f7af83717b073323a656225a (diff) | |
download | MultiMC-3ed990861a52f090d355555d5f5d3b76a9b4608c.tar MultiMC-3ed990861a52f090d355555d5f5d3b76a9b4608c.tar.gz MultiMC-3ed990861a52f090d355555d5f5d3b76a9b4608c.tar.lz MultiMC-3ed990861a52f090d355555d5f5d3b76a9b4608c.tar.xz MultiMC-3ed990861a52f090d355555d5f5d3b76a9b4608c.zip |
NOISSUE simplify ProblemProvider
Diffstat (limited to 'api/logic/ProblemProvider.h')
-rw-r--r-- | api/logic/ProblemProvider.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/api/logic/ProblemProvider.h b/api/logic/ProblemProvider.h index b30e1776..7dedccd7 100644 --- a/api/logic/ProblemProvider.h +++ b/api/logic/ProblemProvider.h @@ -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: |