Skip to content

Commit 7cd7ef2

Browse files
committed
use library ReportType in GUI
1 parent 7aa27f5 commit 7cd7ef2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

gui/common.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#include <QMap>
2525
#include <QString>
2626

27+
#include "checkers.h"
28+
2729
/// @addtogroup GUI
2830
/// @{
2931

@@ -52,7 +54,7 @@
5254

5355
// Report type
5456
#define SETTINGS_REPORT_TYPE "Report type"
55-
enum class ReportType : std::uint8_t { normal=0, autosar=1, certC=2, certCpp=3, misraC=4, misraCpp2008=5, misraCpp2023=6 };
57+
using ReportType = checkers::ReportType;
5658

5759
// Show * states
5860
#define SETTINGS_SHOW_STYLE "Show style"

gui/resultstree.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
#include "application.h"
2222
#include "applicationlist.h"
23-
#include "checkers.h"
2423
#include "common.h"
2524
#include "erroritem.h"
2625
#include "errorlogger.h"

gui/resultstree.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
#include "common.h"
2424
#include "showtypes.h"
25-
#include "checkers.h"
2625

2726
#include <cstdint>
2827

@@ -186,7 +185,7 @@ class ResultsTree : public QTreeView {
186185

187186
void keyPressEvent(QKeyEvent *event) override;
188187

189-
void setReportType(checkers::ReportType reportType);
188+
void setReportType(ReportType reportType);
190189

191190
signals:
192191
/**

gui/resultsview.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
#include "report.h"
2424
#include "showtypes.h"
25+
#include "common.h"
2526

2627
#include <cstdint>
2728

@@ -39,7 +40,6 @@ class QPrinter;
3940
class QSettings;
4041
class CheckStatistics;
4142
class QPoint;
42-
enum class ReportType : std::uint8_t;
4343
namespace Ui {
4444
class ResultsView;
4545
}

0 commit comments

Comments
 (0)