Skip to content

Commit

Permalink
chore: formatted all files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lovelylavender4 committed Feb 24, 2024
1 parent dc310d1 commit 52d3a86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/ll/api/memory/PatchHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ namespace ll::memory {

template <size_t len>
struct PatchHelper {
uchar data[len];
uchar data[len];
using ref_t = uchar (&)[len];
constexpr bool operator==(ref_t ref) const noexcept { return memcmp(data, ref, sizeof data) == 0; }
constexpr bool operator!=(ref_t ref) const noexcept { return memcmp(data, ref, sizeof data) != 0; }
constexpr bool operator==(PatchHelper const& ref) const noexcept {
constexpr bool operator==(ref_t ref) const noexcept { return memcmp(data, ref, sizeof data) == 0; }
constexpr bool operator!=(ref_t ref) const noexcept { return memcmp(data, ref, sizeof data) != 0; }
constexpr bool operator==(PatchHelper const& ref) const noexcept {
return memcmp(data, ref.data, sizeof data) == 0;
}
constexpr bool operator!=(PatchHelper const& ref) const noexcept {
Expand Down
2 changes: 1 addition & 1 deletion src/mc/common/wrapper/optional_ref.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class optional_ref {
return std::invoke(*mPtr, static_cast<Types&&>(args)...);
}
template <class Arg>
[[nodiscard]] constexpr decltype(auto) operator[](Arg&& index) const {
[[nodiscard]] constexpr decltype(auto) operator[](Arg && index) const {
return get()[std::forward<Arg>(index)];
}
[[nodiscard]] constexpr decltype(auto) end() { return get().end(); }
Expand Down

0 comments on commit 52d3a86

Please sign in to comment.