Skip to content

Commit

Permalink
fix: adjusted code format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lovelylavender4 committed Feb 24, 2024
1 parent e3e15f5 commit 4ff0029
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 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
2 changes: 1 addition & 1 deletion src/mc/deps/core/common/bedrock/MemoryPage.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class MemoryPage {
// symbol: ?_allocate@MemoryPage@JSONObject@Bedrock@@AEAAPEAXP8123@EAA_K_K0@ZP8123@EAAPEAX00@Z00@Z
MCAPI void* _allocate(
uint64 (Bedrock::JSONObject::MemoryPage::*)(uint64, uint64),
void* (Bedrock::JSONObject::MemoryPage::*)(uint64, uint64),
void* (Bedrock::JSONObject::MemoryPage::*)(uint64, uint64),
uint64 bytes,
uint64 align
);
Expand Down
2 changes: 1 addition & 1 deletion src/mc/deps/core/utility/Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ MCAPI std::vector<std::string> splitLines(
std::vector<std::string> const& delims,
bool includeDelimCharsInResult,
bool includeEmptyLines,
std::istream& (*fnGetline)(std::istream&, std::string&)
std::istream& (*fnGetline)(std::istream&, std::string&)
);

// symbol:
Expand Down
2 changes: 1 addition & 1 deletion src/mc/deps/raknet/RakPeer.h
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ class RakPeer : public RakPeerInterface {

// symbol: ?SetUserUpdateThread@RakPeer@RakNet@@UEAAXP6AXPEAVRakPeerInterface@2@PEAX@Z1@Z
MCVAPI void SetUserUpdateThread(
void (*_userUpdateThreadPtr)(class RakNet::RakPeerInterface*, void*),
void (*_userUpdateThreadPtr)(class RakNet::RakPeerInterface*, void*),
void* _userUpdateThreadData
);

Expand Down

0 comments on commit 4ff0029

Please sign in to comment.