Skip to content

Commit a2b72c6

Browse files
committed
switch to pass-by-value for camera param blocks
1 parent f03a903 commit a2b72c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/protonect/include/libfreenect2/registration.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace libfreenect2
3737
class LIBFREENECT2_API Registration
3838
{
3939
public:
40-
Registration(Freenect2Device::IrCameraParams *depth_p, Freenect2Device::ColorCameraParams *rgb_p);
40+
Registration(Freenect2Device::IrCameraParams depth_p, Freenect2Device::ColorCameraParams rgb_p);
4141

4242
void apply( int dx, int dy, float dz, float& cx, float &cy);
4343

examples/protonect/src/registration.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ void Registration::apply( int dx, int dy, float dz, float& cx, float &cy)
8787
cy = ry * color.fy + color.cy;
8888
}
8989

90-
Registration::Registration(Freenect2Device::IrCameraParams *depth_p, Freenect2Device::ColorCameraParams *rgb_p):
91-
depth(*depth_p), color(*rgb_p)
90+
Registration::Registration(Freenect2Device::IrCameraParams depth_p, Freenect2Device::ColorCameraParams rgb_p):
91+
depth(depth_p), color(rgb_p)
9292
{
9393
float mx, my;
9494
float rx, ry;

0 commit comments

Comments
 (0)