Cleanup: pass matrix & vector by const reference instead of value
This commit is contained in:
@@ -143,9 +143,9 @@ class Domain {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/* A size only constructor that sets the transformation to identity. */
|
/* A size only constructor that sets the transformation to identity. */
|
||||||
Domain(int2 size);
|
Domain(const int2 &size);
|
||||||
|
|
||||||
Domain(int2 size, float3x3 transformation);
|
Domain(const int2 &size, const float3x3 &transformation);
|
||||||
|
|
||||||
/* Transform the domain by the given transformation. This effectively pre-multiply the given
|
/* Transform the domain by the given transformation. This effectively pre-multiply the given
|
||||||
* transformation by the current transformation of the domain. */
|
* transformation by the current transformation of the domain. */
|
||||||
|
|||||||
@@ -7,11 +7,12 @@
|
|||||||
|
|
||||||
namespace blender::realtime_compositor {
|
namespace blender::realtime_compositor {
|
||||||
|
|
||||||
Domain::Domain(int2 size) : size(size), transformation(float3x3::identity())
|
Domain::Domain(const int2 &size) : size(size), transformation(float3x3::identity())
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
Domain::Domain(int2 size, float3x3 transformation) : size(size), transformation(transformation)
|
Domain::Domain(const int2 &size, const float3x3 &transformation)
|
||||||
|
: size(size), transformation(transformation)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user