fix: optimization: PVS-Studio warning V813
Passing large objects by const reference avoids unnecessary copying and enhances efficiency. Reported by: PVS-Studio Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
+1
-1
@@ -70,7 +70,7 @@ struct AABB {
|
||||
b = end;
|
||||
}
|
||||
|
||||
inline void addPoint(glm::vec3 p) {
|
||||
inline void addPoint(const glm::vec3& p) {
|
||||
a = glm::min(a, p);
|
||||
b = glm::max(b, p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user