Skip to content

Commit 86ee90e

Browse files
committed
More things copilot found.
1 parent 7a168fa commit 86ee90e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

features/include/pcl/features/fpfh_omp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ namespace pcl
121121
int nr_bins_f1_{11}, nr_bins_f2_{11}, nr_bins_f3_{11};
122122
private:
123123
/** \brief The number of threads the scheduler should use. */
124-
unsigned int num_threads_;
124+
unsigned int num_threads_{1};
125125
};
126126
}
127127

features/include/pcl/features/intensity_gradient.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ namespace pcl
8080
inline void
8181
setNumberOfThreads(unsigned int num_threads = 0)
8282
{
83-
#ifdef _OPENMP num_threads_ =
84-
num_threads != 0 ? num_threads : omp_get_num_procs();
83+
#ifdef _OPENMP
84+
num_threads_ = num_threads != 0 ? num_threads : omp_get_num_procs();
8585
#else
8686
if (num_threads_ != 1) {
8787
PCL_WARN(

features/include/pcl/features/shot_omp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ namespace pcl
121121
initCompute () override;
122122

123123
/** \brief The number of threads the scheduler should use. */
124-
unsigned int num_threads_;
124+
unsigned int num_threads_{1};
125125
};
126126

127127
/** \brief SHOTColorEstimationOMP estimates the Signature of Histograms of OrienTations (SHOT) descriptor for a given point cloud dataset

filters/include/pcl/filters/convolution.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ namespace pcl
126126
inline void
127127
setNumberOfThreads(unsigned int num_threads = 0)
128128
{
129-
#ifdef _OPENMP num_threads_ =
130-
num_threads != 0 ? num_threads : omp_get_num_procs();
129+
#ifdef _OPENMP
130+
num_threads_ = num_threads != 0 ? num_threads : omp_get_num_procs();
131131
#else
132132
if (num_threads_ != 1) {
133133
PCL_WARN(

0 commit comments

Comments
 (0)