Skip to content
This repository was archived by the owner on Dec 30, 2023. It is now read-only.

Commit bc0622b

Browse files
committed
add & for ref args in save/load functions
1 parent 4e103e8 commit bc0622b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pcl/pcl_defs.pxd

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,14 @@ ctypedef PointIndices PointIndices_t
122122
ctypedef shared_ptr[PointIndices] PointIndicesPtr_t
123123

124124
cdef extern from "pcl/io/pcd_io.h" namespace "pcl::io":
125-
int loadPCDFile(string file_name, PointCloud[PointXYZ] cloud) nogil
126-
int savePCDFile(string file_name, PointCloud[PointXYZ] cloud,
125+
int load(string file_name, PointCloud[PointXYZ] &cloud) nogil
126+
int loadPCDFile(string file_name, PointCloud[PointXYZ] &cloud) nogil
127+
int savePCDFile(string file_name, PointCloud[PointXYZ] &cloud,
127128
bool binary_mode) nogil
128129

129130
cdef extern from "pcl/io/ply_io.h" namespace "pcl::io":
130-
int loadPLYFile(string file_name, PointCloud[PointXYZ] cloud) nogil
131-
int savePLYFile(string file_name, PointCloud[PointXYZ] cloud,
131+
int loadPLYFile(string file_name, PointCloud[PointXYZ] &cloud) nogil
132+
int savePLYFile(string file_name, PointCloud[PointXYZ] &cloud,
132133
bool binary_mode) nogil
133134

134135
#http://dev.pointclouds.org/issues/624

0 commit comments

Comments
 (0)