mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Issue found with PVS-Studio:
A lot of instances where some function args are not actually modified in any way, meaning that it is better for performance to convert them into const references. This prevents an additional copy, which can help performance.
This commit is contained in:
parent
ec63398042
commit
11398bb04e
40 changed files with 59 additions and 59 deletions
|
|
@ -125,8 +125,8 @@ bool intersect_triangle(Point3F orig, Point3F dir,
|
|||
}
|
||||
|
||||
//*** Taken from TSE, and based on the above
|
||||
bool castRayTriangle(Point3F orig, Point3F dir,
|
||||
Point3F vert0, Point3F vert1, Point3F vert2,
|
||||
bool castRayTriangle(const Point3F& orig, const Point3F& dir,
|
||||
const Point3F& vert0, const Point3F& vert1, const Point3F& vert2,
|
||||
F32 &t, Point2F &bary)
|
||||
{
|
||||
Point3F tvec, qvec;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue