diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-09-02 00:38:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 00:38:07 +0200 |
commit | f2e670bd32fc291dbb6a4b45c08cb8f2d94a6bc8 (patch) | |
tree | eb23e0d5ebfc8f796b7bde55179ae3dc0ae46d3f /NorthstarDLL/memory.h | |
parent | 80673fb5cfa32d3ff75d54c4c4173d32905fda30 (diff) | |
download | NorthstarLauncher-f2e670bd32fc291dbb6a4b45c08cb8f2d94a6bc8.tar.gz NorthstarLauncher-f2e670bd32fc291dbb6a4b45c08cb8f2d94a6bc8.zip |
Refactor cleanup (some formatting fixes) (#257)
* Fix some formatting
* More formatting fixes
Diffstat (limited to 'NorthstarDLL/memory.h')
-rw-r--r-- | NorthstarDLL/memory.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/NorthstarDLL/memory.h b/NorthstarDLL/memory.h index b69979d0..38c76cb3 100644 --- a/NorthstarDLL/memory.h +++ b/NorthstarDLL/memory.h @@ -1,4 +1,4 @@ -#pragma once +#pragma once class MemoryAddress { @@ -10,7 +10,7 @@ class MemoryAddress MemoryAddress(const uintptr_t nAddress); MemoryAddress(const void* pAddress); - //operators + // operators operator uintptr_t() const; operator void*() const; operator bool() const; @@ -26,7 +26,10 @@ class MemoryAddress MemoryAddress operator-(const uintptr_t& other) const; MemoryAddress operator*() const; - template <typename T> T As() { return reinterpret_cast<T>(m_nAddress); } + template <typename T> T As() + { + return reinterpret_cast<T>(m_nAddress); + } // traversal MemoryAddress Offset(const uintptr_t nOffset) const; |