summaryrefslogtreecommitdiff
path: root/include/JSystem/JSupport
diff options
context:
space:
mode:
authorJcw87 <Jcw87@users.noreply.github.com>2025-12-26 13:20:53 -0800
committerGitHub <noreply@github.com>2025-12-26 13:20:53 -0800
commitbae6d9da2d03ea94d7eb87c8fe5255abd01f34c6 (patch)
tree2d3191ea80511e80c23b1cd879054926bc5a6a8d /include/JSystem/JSupport
parent67b576ad9aec15953fa0d52f33cc88e8a783b46b (diff)
JAudio2 debug (#2996)
Diffstat (limited to 'include/JSystem/JSupport')
-rw-r--r--include/JSystem/JSupport/JSUList.h4
-rw-r--r--include/JSystem/JSupport/JSupport.h6
2 files changed, 3 insertions, 7 deletions
diff --git a/include/JSystem/JSupport/JSUList.h b/include/JSystem/JSupport/JSUList.h
index 7b31430276..8d42762d2c 100644
--- a/include/JSystem/JSupport/JSUList.h
+++ b/include/JSystem/JSupport/JSUList.h
@@ -245,9 +245,9 @@ public:
return *this;
}
- T* operator*() const { return this->getObject(); }
+ T* operator*() const { return mTree->getObject(); }
- T* operator->() const { return this->getObject(); }
+ T* operator->() const { return mTree->getObject(); }
private:
JSUTree<T>* mTree;
diff --git a/include/JSystem/JSupport/JSupport.h b/include/JSystem/JSupport/JSupport.h
index 4f103bdf1a..717fd9b7b0 100644
--- a/include/JSystem/JSupport/JSupport.h
+++ b/include/JSystem/JSupport/JSupport.h
@@ -10,11 +10,7 @@
*/
template <typename T>
T* JSUConvertOffsetToPtr(const void* ptr, uintptr_t offset) {
- if (offset == 0) {
- return NULL;
- } else {
- return (T*)((intptr_t)ptr + (intptr_t)offset);
- }
+ return offset == 0 ? NULL : (T*)((intptr_t)ptr + (intptr_t)offset);
}
/**