Skip to content

Commit a1d1772

Browse files
committed
Use pragma once on new header files
1 parent c411fe1 commit a1d1772

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

collector/lib/CollectorOutput.h

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

43
#include <variant>
54

@@ -78,5 +77,3 @@ class CollectorOutput {
7877
};
7978

8079
} // namespace collector
81-
82-
#endif // COLLECTOR_OUTPUT_H

collector/lib/SensorClient.h

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

43
#include <memory>
54

@@ -85,5 +84,3 @@ class SensorClientStdout : public ISensorClient {
8584
};
8685

8786
} // namespace collector
88-
89-
#endif //_SENSOR_CLIENT_H_

collector/lib/SensorClientFormatter.h

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

43
#include <memory>
54

@@ -112,5 +111,3 @@ class SensorClientFormatter : public ProtoSignalFormatter<sensor::MsgFromCollect
112111
};
113112

114113
} // namespace collector
115-
116-
#endif // SENSOR_CLIENT_FORMATTER_H

0 commit comments

Comments
 (0)