Skip to content

Commit

Permalink
Minor code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Aug 4, 2024
1 parent 7d4fbcf commit 9d56676
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Source/UEST/Public/UEST.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace UEST
template<typename T>
auto operator()() const
{
return Matcher<T>();
return Matcher<T>{};
}
} Null;

Expand All @@ -61,7 +61,7 @@ namespace UEST
template<typename T>
auto operator()() const
{
return Matcher<T>();
return Matcher<T>{};
}
} True;

Expand All @@ -85,7 +85,7 @@ namespace UEST
template<typename T>
auto operator()() const
{
return Matcher<T>();
return Matcher<T>{};
}
} False;

Expand Down Expand Up @@ -118,7 +118,7 @@ namespace UEST
const T& Expected;

LessThan(const T& Expected)
: Expected(Expected)
: Expected{Expected}
{
}

Expand All @@ -140,7 +140,7 @@ namespace UEST
const T& Expected;

LessThanOrEqual(const T& Expected)
: Expected(Expected)
: Expected{Expected}
{
}

Expand All @@ -162,7 +162,7 @@ namespace UEST
const T& Expected;

GreaterThan(const T& Expected)
: Expected(Expected)
: Expected{Expected}
{
}

Expand All @@ -184,7 +184,7 @@ namespace UEST
const T& Expected;

GreaterThanOrEqual(const T& Expected)
: Expected(Expected)
: Expected{Expected}
{
}

Expand All @@ -209,7 +209,7 @@ namespace UEST
Not() = default;

Not(M&& Nested)
: Nested(MoveTemp(Nested))
: Nested{MoveTemp(Nested)}
{
}

Expand Down

0 comments on commit 9d56676

Please sign in to comment.