aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDLL/memory.h
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2022-09-02 00:38:07 +0200
committerGitHub <noreply@github.com>2022-09-02 00:38:07 +0200
commitf2e670bd32fc291dbb6a4b45c08cb8f2d94a6bc8 (patch)
treeeb23e0d5ebfc8f796b7bde55179ae3dc0ae46d3f /NorthstarDLL/memory.h
parent80673fb5cfa32d3ff75d54c4c4173d32905fda30 (diff)
downloadNorthstarLauncher-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.h9
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;