Skip to content

Commit 8ad5dbe

Browse files
committed
Replace header guards with pragma once
1 parent 04384fc commit 8ad5dbe

File tree

10 files changed

+10
-40
lines changed

10 files changed

+10
-40
lines changed

include/web_video_server/h264_streamer.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2828
// POSSIBILITY OF SUCH DAMAGE.
2929

30-
#ifndef WEB_VIDEO_SERVER__H264_STREAMER_HPP_
31-
#define WEB_VIDEO_SERVER__H264_STREAMER_HPP_
30+
#pragma once
3231

3332
#include <string>
3433

@@ -65,5 +64,3 @@ class H264StreamerType : public LibavStreamerType
6564
};
6665

6766
} // namespace web_video_server
68-
69-
#endif // WEB_VIDEO_SERVER__H264_STREAMER_HPP_

include/web_video_server/image_streamer.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2929
// POSSIBILITY OF SUCH DAMAGE.
3030

31-
#ifndef WEB_VIDEO_SERVER__IMAGE_STREAMER_HPP_
32-
#define WEB_VIDEO_SERVER__IMAGE_STREAMER_HPP_
31+
#pragma once
3332

3433
#include <string>
3534

@@ -128,5 +127,3 @@ class ImageStreamerType
128127
};
129128

130129
} // namespace web_video_server
131-
132-
#endif // WEB_VIDEO_SERVER__IMAGE_STREAMER_HPP_

include/web_video_server/jpeg_streamers.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2929
// POSSIBILITY OF SUCH DAMAGE.
3030

31-
#ifndef WEB_VIDEO_SERVER__JPEG_STREAMERS_HPP_
32-
#define WEB_VIDEO_SERVER__JPEG_STREAMERS_HPP_
31+
#pragma once
3332

3433
#include <string>
3534

@@ -85,5 +84,3 @@ class JpegSnapshotStreamer : public ImageTransportImageStreamer
8584
};
8685

8786
} // namespace web_video_server
88-
89-
#endif // WEB_VIDEO_SERVER__JPEG_STREAMERS_HPP_

include/web_video_server/libav_streamer.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2929
// POSSIBILITY OF SUCH DAMAGE.
3030

31-
#ifndef WEB_VIDEO_SERVER__LIBAV_STREAMER_HPP_
32-
#define WEB_VIDEO_SERVER__LIBAV_STREAMER_HPP_
31+
#pragma once
3332

3433
extern "C"
3534
{
@@ -113,5 +112,3 @@ class LibavStreamerType : public ImageStreamerType
113112
};
114113

115114
} // namespace web_video_server
116-
117-
#endif // WEB_VIDEO_SERVER__LIBAV_STREAMER_HPP_

include/web_video_server/multipart_stream.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2929
// POSSIBILITY OF SUCH DAMAGE.
3030

31-
#ifndef WEB_VIDEO_SERVER__MULTIPART_STREAM_HPP_
32-
#define WEB_VIDEO_SERVER__MULTIPART_STREAM_HPP_
31+
#pragma once
3332

3433
#include <queue>
3534
#include <memory>
@@ -79,5 +78,3 @@ class MultipartStream
7978
};
8079

8180
} // namespace web_video_server
82-
83-
#endif // WEB_VIDEO_SERVER__MULTIPART_STREAM_HPP_

include/web_video_server/png_streamers.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2828
// POSSIBILITY OF SUCH DAMAGE.
2929

30-
#ifndef WEB_VIDEO_SERVER__PNG_STREAMERS_HPP_
31-
#define WEB_VIDEO_SERVER__PNG_STREAMERS_HPP_
30+
#pragma once
3231

3332
#include <string>
3433

@@ -86,5 +85,3 @@ class PngSnapshotStreamer : public ImageTransportImageStreamer
8685
};
8786

8887
} // namespace web_video_server
89-
90-
#endif // WEB_VIDEO_SERVER__PNG_STREAMERS_HPP_

include/web_video_server/ros_compressed_streamer.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2929
// POSSIBILITY OF SUCH DAMAGE.
3030

31-
#ifndef WEB_VIDEO_SERVER__ROS_COMPRESSED_STREAMER_HPP_
32-
#define WEB_VIDEO_SERVER__ROS_COMPRESSED_STREAMER_HPP_
31+
#pragma once
3332

3433
#include <string>
3534

@@ -79,5 +78,3 @@ class RosCompressedStreamerType : public ImageStreamerType
7978
};
8079

8180
} // namespace web_video_server
82-
83-
#endif // WEB_VIDEO_SERVER__ROS_COMPRESSED_STREAMER_HPP_

include/web_video_server/vp8_streamer.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2929
// POSSIBILITY OF SUCH DAMAGE.
3030

31-
#ifndef WEB_VIDEO_SERVER__VP8_STREAMER_HPP_
32-
#define WEB_VIDEO_SERVER__VP8_STREAMER_HPP_
31+
#pragma once
3332

3433
#include <string>
3534

@@ -68,5 +67,3 @@ class Vp8StreamerType : public LibavStreamerType
6867
};
6968

7069
} // namespace web_video_server
71-
72-
#endif // WEB_VIDEO_SERVER__VP8_STREAMER_HPP_

include/web_video_server/vp9_streamer.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2828
// POSSIBILITY OF SUCH DAMAGE.
2929

30-
#ifndef WEB_VIDEO_SERVER__VP9_STREAMER_HPP_
31-
#define WEB_VIDEO_SERVER__VP9_STREAMER_HPP_
30+
#pragma once
3231

3332
#include "image_transport/image_transport.hpp"
3433
#include "web_video_server/libav_streamer.hpp"
@@ -62,5 +61,3 @@ class Vp9StreamerType : public LibavStreamerType
6261
};
6362

6463
} // namespace web_video_server
65-
66-
#endif // WEB_VIDEO_SERVER__VP9_STREAMER_HPP_

include/web_video_server/web_video_server.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2929
// POSSIBILITY OF SUCH DAMAGE.
3030

31-
#ifndef WEB_VIDEO_SERVER__WEB_VIDEO_SERVER_HPP_
32-
#define WEB_VIDEO_SERVER__WEB_VIDEO_SERVER_HPP_
31+
#pragma once
3332

3433
#include <map>
3534
#include <string>
@@ -124,5 +123,3 @@ class WebVideoServer
124123
};
125124

126125
} // namespace web_video_server
127-
128-
#endif // WEB_VIDEO_SERVER__WEB_VIDEO_SERVER_HPP_

0 commit comments

Comments
 (0)