diff --git a/source/blender/compositor/realtime_compositor/COM_domain.hh b/source/blender/compositor/realtime_compositor/COM_domain.hh index 99b40ae61cf..0e975afb1e2 100644 --- a/source/blender/compositor/realtime_compositor/COM_domain.hh +++ b/source/blender/compositor/realtime_compositor/COM_domain.hh @@ -143,9 +143,9 @@ class Domain { public: /* 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 * transformation by the current transformation of the domain. */ diff --git a/source/blender/compositor/realtime_compositor/intern/domain.cc b/source/blender/compositor/realtime_compositor/intern/domain.cc index 31b297c212e..489e73d74ce 100644 --- a/source/blender/compositor/realtime_compositor/intern/domain.cc +++ b/source/blender/compositor/realtime_compositor/intern/domain.cc @@ -7,11 +7,12 @@ 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) { }