Skip to content

Commit 271dd72

Browse files
authored
Merge pull request #380 from OpenATSGmbH/copilot/fix-4c95d5d4-ecf3-495b-9457-aece798241fc
Replace traditional include guards with #pragma once in all C++ header files
2 parents b234e8d + a5ff89b commit 271dd72

File tree

202 files changed

+202
-795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+202
-795
lines changed

src/asterix/asterixconfigwidget.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with COMPASS. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef ASTERIXCONFIGWIDGET_H
19-
#define ASTERIXCONFIGWIDGET_H
18+
#pragma once
2019

2120
#include <jasterix/jasterix.h>
2221

@@ -75,5 +74,3 @@ class ASTERIXConfigWidget : public QWidget
7574
void updateFraming();
7675
void updateCategories();
7776
};
78-
79-
#endif // ASTERIXCONFIGWIDGET_H

src/asterix/asterixeditioncombobox.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with COMPASS. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef ASTERIXEDITIONCOMBOBOX_H
19-
#define ASTERIXEDITIONCOMBOBOX_H
18+
#pragma once
2019

2120
#include <jasterix/category.h>
2221
#include <jasterix/jasterix.h>
@@ -78,5 +77,3 @@ class ASTERIXEditionComboBox : public QComboBox
7877
ASTERIXImportTask& task_;
7978
const std::shared_ptr<jASTERIX::Category> category_;
8079
};
81-
82-
#endif // ASTERIXEDITIONCOMBOBOX_H

src/asterix/asterixframingcombobox.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with COMPASS. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef ASTERIXFRAMINGCOMBOBOX_H
19-
#define ASTERIXFRAMINGCOMBOBOX_H
18+
#pragma once
2019

2120
#include <jasterix/jasterix.h>
2221

@@ -72,5 +71,3 @@ class ASTERIXFramingComboBox : public QComboBox
7271

7372
ASTERIXImportTask& task_;
7473
};
75-
76-
#endif // ASTERIXFRAMINGCOMBOBOX_H

src/asterix/asterixjsonparserdetailwidget.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef ASTERIXJSONPARSERDETAILWIDGET_H
2-
#define ASTERIXJSONPARSERDETAILWIDGET_H
1+
#pragma once
32

43
#include "asterixjsonparser.h"
54

@@ -85,5 +84,3 @@ public slots:
8584
void showDBContentVariable (const std::string& var_name, bool mapping_exists=false);
8685

8786
};
88-
89-
#endif // ASTERIXJSONPARSERDETAILWIDGET_H

src/asterix/asterixjsonparserwidget.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef ASTERIXJSONPARSERWIDGET_H
2-
#define ASTERIXJSONPARSERWIDGET_H
1+
#pragma once
32

43
#include <QWidget>
54

@@ -36,5 +35,3 @@ public slots:
3635

3736
virtual void keyPressEvent(QKeyEvent* event);
3837
};
39-
40-
#endif // ASTERIXJSONPARSERWIDGET_H

src/asterix/asterixjsonparsingschema.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef ASTERIXJSONPARSINGSCHEMA_H
2-
#define ASTERIXJSONPARSINGSCHEMA_H
1+
#pragma once
32

43
#include "configurable.h"
54
#include "asterixjsonparser.h"
@@ -47,5 +46,3 @@ class ASTERIXJSONParsingSchema : public Configurable
4746
virtual void checkSubConfigurables() {}
4847

4948
};
50-
51-
#endif // ASTERIXJSONPARSINGSCHEMA_H

src/asterix/asterixpostprocess.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with COMPASS. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef ASTERIXPOSTPROCESS_H
19-
#define ASTERIXPOSTPROCESS_H
18+
#pragma once
2019

2120
#include "json_fwd.hpp"
2221

@@ -43,5 +42,3 @@ class ASTERIXPostProcess
4342
void postProcessCAT048(int sac, int sic, nlohmann::json& record);
4443
void postProcessCAT062(int sac, int sic, nlohmann::json& record);
4544
};
46-
47-
#endif // ASTERIXPOSTPROCESS_H

src/asterix/asterixrefeditioncombobox.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with COMPASS. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef ASTERIXREFCOMBOBOX_H
19-
#define ASTERIXREFCOMBOBOX_H
18+
#pragma once
2019

2120
#include <jasterix/jasterix.h>
2221
#include <jasterix/refedition.h>
@@ -81,5 +80,3 @@ class ASTERIXREFEditionComboBox : public QComboBox
8180
ASTERIXImportTask& task_;
8281
const std::shared_ptr<jASTERIX::Category> category_;
8382
};
84-
85-
#endif // ASTERIXREFCOMBOBOX_H

src/asterix/asterixspfeditioncombobox.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with COMPASS. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef ASTERIXSPFEDITIONCOMBOBOX_H
19-
#define ASTERIXSPFEDITIONCOMBOBOX_H
18+
#pragma once
2019

2120
#include <jasterix/jasterix.h>
2221
#include <jasterix/spfedition.h>
@@ -81,5 +80,3 @@ class ASTERIXSPFEditionComboBox : public QComboBox
8180
ASTERIXImportTask& task_;
8281
const std::shared_ptr<jASTERIX::Category> category_;
8382
};
84-
85-
#endif // ASTERIXSPFEDITIONCOMBOBOX_H

src/client/appmode.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef APPMODE_H
2-
#define APPMODE_H
1+
#pragma once
32

43
#include <string>
54
#include <stdexcept>
@@ -29,5 +28,3 @@ enum class AppState
2928
Running,
3029
Shutdown
3130
};
32-
33-
#endif // APPMODE_H

0 commit comments

Comments
 (0)