From 3073a88cd16b6e85401363c814e5ac7ae11b9270 Mon Sep 17 00:00:00 2001 From: Kai Blaschke Date: Sun, 25 Feb 2024 15:46:47 +0100 Subject: Use "#pragma once" instead of include guards --- source/json_tool/editor_gui.hpp | 5 +---- source/json_tool/json_tool.hpp | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'source/json_tool') diff --git a/source/json_tool/editor_gui.hpp b/source/json_tool/editor_gui.hpp index d24c029..f30bf70 100644 --- a/source/json_tool/editor_gui.hpp +++ b/source/json_tool/editor_gui.hpp @@ -1,5 +1,4 @@ -#ifndef EDITOR_GUI_HPP -#define EDITOR_GUI_HPP +#pragma once #include #include @@ -52,5 +51,3 @@ private: int edit(int argc, char* argv[], JsonPath::PathPtr const& path, Options const& options, List const& inputs); } - -#endif diff --git a/source/json_tool/json_tool.hpp b/source/json_tool/json_tool.hpp index 6f4c337..0eaaeba 100644 --- a/source/json_tool/json_tool.hpp +++ b/source/json_tool/json_tool.hpp @@ -1,5 +1,4 @@ -#ifndef JSON_TOOL_HPP -#define JSON_TOOL_HPP +#pragma once #include "StarFormattedJson.hpp" #include "StarJsonPath.hpp" @@ -146,5 +145,3 @@ String reprWithLineEnding(FormattedJson const& json); StringList findFiles(FindInput const& findArgs); } - -#endif -- cgit v1.2.3