Skip to content

Commit 07f0fe4

Browse files
committed
Fix picojson type conflicts in sarifreport - Remove incorrect forward declaration - Include json.h in header - Remove duplicate include
1 parent ece5f5a commit 07f0fe4

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

lib/sarifreport.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "sarifreport.h"
2020
#include "errorlogger.h"
2121
#include "errortypes.h"
22-
#include "json.h"
2322
#include "settings.h"
2423
#include "cppcheck.h"
2524

lib/sarifreport.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@
2626
#include <string>
2727
#include <vector>
2828

29-
namespace picojson {
30-
class value;
31-
class array;
32-
}
29+
// Include picojson headers
30+
#include "json.h"
3331

3432
class CPPCHECKLIB SarifReport {
3533
public:

0 commit comments

Comments
 (0)