Skip to content

Commit f43a78e

Browse files
committedJun 18, 2024·
fix formatting
1 parent 90bd6c8 commit f43a78e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎include/LDtkLoader/Field.hpp

+6-4
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,10 @@ namespace ldtk {
3333
template <typename T>
3434
#if defined LDTK_FIELD_PUBLIC_OPTIONAL
3535
struct Field : IField, public optional<T>
36-
{
3736
#else
3837
struct Field : IField, private optional<T>
39-
{
4038
#endif
39+
{
4140
private:
4241
static const ArrayField<T> m_dummy;
4342

@@ -63,16 +62,18 @@ namespace ldtk {
6362
template <class T>
6463
auto operator==(const Field<T>& lhs, const T& rhs) -> bool
6564
{
66-
if (lhs.is_null())
65+
if (lhs.is_null()) {
6766
return false;
67+
}
6868
return (lhs.value() == rhs);
6969
}
7070

7171
template <class T>
7272
auto operator==(const T& lhs, const Field<T>& rhs) -> bool
7373
{
74-
if (rhs.is_null())
74+
if (rhs.is_null()) {
7575
return false;
76+
}
7677
return (rhs.value() == lhs);
7778
}
7879

@@ -92,6 +93,7 @@ namespace ldtk {
9293
struct ArrayField : IField, std::vector<Field<T>>
9394
{
9495
using value_type = T;
96+
9597
ArrayField() = default;
9698
explicit ArrayField(const std::vector<Field<T>>& vals) : std::vector<Field<T>>(vals) {}
9799

0 commit comments

Comments
 (0)
Please sign in to comment.