Skip to content

Commit

Permalink
Replace header guards with pragma once
Browse files Browse the repository at this point in the history
  • Loading branch information
bjsowa committed Oct 10, 2024
1 parent 04384fc commit 8ad5dbe
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 40 deletions.
5 changes: 1 addition & 4 deletions include/web_video_server/h264_streamer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

#ifndef WEB_VIDEO_SERVER__H264_STREAMER_HPP_
#define WEB_VIDEO_SERVER__H264_STREAMER_HPP_
#pragma once

#include <string>

Expand Down Expand Up @@ -65,5 +64,3 @@ class H264StreamerType : public LibavStreamerType
};

} // namespace web_video_server

#endif // WEB_VIDEO_SERVER__H264_STREAMER_HPP_
5 changes: 1 addition & 4 deletions include/web_video_server/image_streamer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

#ifndef WEB_VIDEO_SERVER__IMAGE_STREAMER_HPP_
#define WEB_VIDEO_SERVER__IMAGE_STREAMER_HPP_
#pragma once

#include <string>

Expand Down Expand Up @@ -128,5 +127,3 @@ class ImageStreamerType
};

} // namespace web_video_server

#endif // WEB_VIDEO_SERVER__IMAGE_STREAMER_HPP_
5 changes: 1 addition & 4 deletions include/web_video_server/jpeg_streamers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

#ifndef WEB_VIDEO_SERVER__JPEG_STREAMERS_HPP_
#define WEB_VIDEO_SERVER__JPEG_STREAMERS_HPP_
#pragma once

#include <string>

Expand Down Expand Up @@ -85,5 +84,3 @@ class JpegSnapshotStreamer : public ImageTransportImageStreamer
};

} // namespace web_video_server

#endif // WEB_VIDEO_SERVER__JPEG_STREAMERS_HPP_
5 changes: 1 addition & 4 deletions include/web_video_server/libav_streamer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

#ifndef WEB_VIDEO_SERVER__LIBAV_STREAMER_HPP_
#define WEB_VIDEO_SERVER__LIBAV_STREAMER_HPP_
#pragma once

extern "C"
{
Expand Down Expand Up @@ -113,5 +112,3 @@ class LibavStreamerType : public ImageStreamerType
};

} // namespace web_video_server

#endif // WEB_VIDEO_SERVER__LIBAV_STREAMER_HPP_
5 changes: 1 addition & 4 deletions include/web_video_server/multipart_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

#ifndef WEB_VIDEO_SERVER__MULTIPART_STREAM_HPP_
#define WEB_VIDEO_SERVER__MULTIPART_STREAM_HPP_
#pragma once

#include <queue>
#include <memory>
Expand Down Expand Up @@ -79,5 +78,3 @@ class MultipartStream
};

} // namespace web_video_server

#endif // WEB_VIDEO_SERVER__MULTIPART_STREAM_HPP_
5 changes: 1 addition & 4 deletions include/web_video_server/png_streamers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

#ifndef WEB_VIDEO_SERVER__PNG_STREAMERS_HPP_
#define WEB_VIDEO_SERVER__PNG_STREAMERS_HPP_
#pragma once

#include <string>

Expand Down Expand Up @@ -86,5 +85,3 @@ class PngSnapshotStreamer : public ImageTransportImageStreamer
};

} // namespace web_video_server

#endif // WEB_VIDEO_SERVER__PNG_STREAMERS_HPP_
5 changes: 1 addition & 4 deletions include/web_video_server/ros_compressed_streamer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

#ifndef WEB_VIDEO_SERVER__ROS_COMPRESSED_STREAMER_HPP_
#define WEB_VIDEO_SERVER__ROS_COMPRESSED_STREAMER_HPP_
#pragma once

#include <string>

Expand Down Expand Up @@ -79,5 +78,3 @@ class RosCompressedStreamerType : public ImageStreamerType
};

} // namespace web_video_server

#endif // WEB_VIDEO_SERVER__ROS_COMPRESSED_STREAMER_HPP_
5 changes: 1 addition & 4 deletions include/web_video_server/vp8_streamer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

#ifndef WEB_VIDEO_SERVER__VP8_STREAMER_HPP_
#define WEB_VIDEO_SERVER__VP8_STREAMER_HPP_
#pragma once

#include <string>

Expand Down Expand Up @@ -68,5 +67,3 @@ class Vp8StreamerType : public LibavStreamerType
};

} // namespace web_video_server

#endif // WEB_VIDEO_SERVER__VP8_STREAMER_HPP_
5 changes: 1 addition & 4 deletions include/web_video_server/vp9_streamer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

#ifndef WEB_VIDEO_SERVER__VP9_STREAMER_HPP_
#define WEB_VIDEO_SERVER__VP9_STREAMER_HPP_
#pragma once

#include "image_transport/image_transport.hpp"
#include "web_video_server/libav_streamer.hpp"
Expand Down Expand Up @@ -62,5 +61,3 @@ class Vp9StreamerType : public LibavStreamerType
};

} // namespace web_video_server

#endif // WEB_VIDEO_SERVER__VP9_STREAMER_HPP_
5 changes: 1 addition & 4 deletions include/web_video_server/web_video_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.

#ifndef WEB_VIDEO_SERVER__WEB_VIDEO_SERVER_HPP_
#define WEB_VIDEO_SERVER__WEB_VIDEO_SERVER_HPP_
#pragma once

#include <map>
#include <string>
Expand Down Expand Up @@ -124,5 +123,3 @@ class WebVideoServer
};

} // namespace web_video_server

#endif // WEB_VIDEO_SERVER__WEB_VIDEO_SERVER_HPP_

0 comments on commit 8ad5dbe

Please sign in to comment.