Skip to content

Commit f60aaa4

Browse files
committed
Changed all include guards to #pragma once
1 parent 130c6d8 commit f60aaa4

Some content is hidden

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

73 files changed

+79
-301
lines changed

parse/jsd.hpp

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

43
#include "jsd_fundamental.hpp"
54
#include "jsd_string.hpp"
@@ -16,5 +15,3 @@
1615
#include "jsd_renamed.hpp"
1716
#include "jsd_unique_ptr.hpp"
1817
#include "jsd_shared_ptr.hpp"
19-
20-
#endif

parse/jsd_array.hpp

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

43
#include "jsd_core.hpp"
54
#include <array>
@@ -36,5 +35,3 @@ namespace JSON
3635
}
3736
}
3837
}
39-
40-
#endif

parse/jsd_atomic.hpp

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

43
#include "jsd_core.hpp"
54
#include <atomic>
@@ -26,5 +25,3 @@ namespace JSON
2625
}
2726
}
2827
}
29-
30-
#endif

parse/jsd_check.hpp

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

43
#include "jsd_core.hpp"
54

@@ -18,5 +17,3 @@ namespace JSON { namespace Internal {
1817

1918
}
2019
}
21-
22-
#endif // JSD_CHECK_H_INCLUDED

parse/jsd_container.hpp

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

43
#include "jsd_core.hpp"
54

@@ -29,5 +28,3 @@ namespace JSON
2928
}
3029
}
3130
}
32-
33-
#endif

parse/jsd_convenience.hpp

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

43
#include "jsd_core.hpp"
54
#include "jsd_check.hpp"
@@ -24,5 +23,3 @@ namespace JSON
2423

2524
#define json_deserialize(NAME) JSON::try_parse(#NAME, NAME)
2625
#define json_deserialize_opt(NAME, OPTIONS) JSON::try_parse(#NAME, NAME, OPTIONS)
27-
28-
#endif // JSD_CONVENIENCE_H_INCLUDED

parse/jsd_core.hpp

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

43
#include "jsd_generic_parser.hpp"
54
#include "jsd_options.hpp"
@@ -92,5 +91,3 @@ namespace JSON
9291
return base_name + "." + name;
9392
}
9493
}
95-
96-
#endif

parse/jsd_fundamental.hpp

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

43
#include "jsd_core.hpp"
54

@@ -31,5 +30,3 @@ namespace JSON
3130
void parse(wchar_t& value, std::string const& name,
3231
PropertyTree const& object, ParsingOptions const& options = DEFAULT_PARSER_OPTIONS);
3332
}
34-
35-
#endif

parse/jsd_fusion_adapted_struct.hpp

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

43
#include "jsd_core.hpp"
54
#include "jsd_object.hpp"
@@ -77,5 +76,3 @@ namespace JSON
7776
virtual ~Parsable() = default;
7877
};
7978
}
80-
81-
#endif // JSS_FUSION_ADAPTED_STRUCT_H_INCLUDED

parse/jsd_generic_parser.hpp

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

43
#include <boost/property_tree/ptree.hpp>
54
#include <boost/optional.hpp>
@@ -24,5 +23,3 @@ namespace JSON
2423
boost::optional<PropertyTree> parse_auto(std::istream& stream);
2524
boost::optional<PropertyTree> parse_xml(std::istream& stream);
2625
}
27-
28-
#endif

0 commit comments

Comments
 (0)