Skip to content

Commit c61a1a2

Browse files
committed
Fix yet more clang-format issues
1 parent d0deb6f commit c61a1a2

7 files changed

Lines changed: 8 additions & 11 deletions

File tree

apps/3d_rec_framework/src/tools/openni_frame_source.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
namespace OpenNIFrameSource {
66

7-
OpenNIFrameSource::OpenNIFrameSource(const std::string& device_id)
8-
: grabber_(device_id)
7+
OpenNIFrameSource::OpenNIFrameSource(const std::string& device_id): grabber_(device_id)
98
{
109
std::function<void(const PointCloudConstPtr&)> frame_cb =
1110
[this](const PointCloudConstPtr& cloud) { onNewFrame(cloud); };

apps/in_hand_scanner/include/pcl/apps/in_hand_scanner/opengl_viewer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public Q_SLOTS:
302302
/** \brief Please have a look at the documentation of calcFPS. */
303303
class FPS {
304304
public:
305-
FPS() : {}
305+
FPS() = default;
306306

307307
inline double&
308308
value()

apps/in_hand_scanner/src/integration.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@
5050
////////////////////////////////////////////////////////////////////////////////
5151

5252
pcl::ihs::Integration::Integration()
53-
: kd_tree_(new pcl::KdTreeFLANN<PointXYZ>())
54-
{}
53+
: kd_tree_(new pcl::KdTreeFLANN<PointXYZ>()) {}
5554

5655
////////////////////////////////////////////////////////////////////////////////
5756

apps/include/pcl/apps/nn_classification.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,7 @@ class NNClassification {
284284
std::make_shared<std::pair<std::vector<std::string>, std::vector<float>>>();
285285
result->first.reserve(classes_.size());
286286
result->second.reserve(classes_.size());
287-
for (auto it = sqr_distances->begin(); it != sqr_distances->end();
288-
++it)
287+
for (auto it = sqr_distances->begin(); it != sqr_distances->end(); ++it)
289288
if (*it != std::numeric_limits<float>::max()) {
290289
result->first.push_back(classes_[it - sqr_distances->begin()]);
291290
result->second.push_back(sqrt(*it));

apps/src/face_detection/openni_frame_source.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
namespace OpenNIFrameSource {
55

6-
OpenNIFrameSource::OpenNIFrameSource(const std::string& device_id)
7-
: grabber_(device_id)
6+
OpenNIFrameSource::OpenNIFrameSource(const std::string& device_id): grabber_(device_id)
87
{
98
std::function<void(const PointCloudConstPtr&)> frame_cb =
109
[this](const PointCloudConstPtr& cloud) { onNewFrame(cloud); };

apps/src/openni_klt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class OpenNIViewer {
111111
using Cloud = pcl::PointCloud<PointType>;
112112
using CloudConstPtr = typename Cloud::ConstPtr;
113113

114-
OpenNIViewer(pcl::Grabber& grabber): grabber_(grabber) {}
114+
OpenNIViewer(pcl::Grabber& grabber) : grabber_(grabber) {}
115115

116116
void
117117
detect_keypoints(const CloudConstPtr& cloud)

apps/src/stereo_ground_segmentation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ class HRCSSegmentation {
266266
if (region_index.indices.size() > 1000) {
267267

268268
for (int index : region_index.indices) {
269-
pcl::PointXYZ ground_pt((*cloud)[index].x, (*cloud)[index].y, (*cloud)[index].z);
269+
pcl::PointXYZ ground_pt(
270+
(*cloud)[index].x, (*cloud)[index].y, (*cloud)[index].z);
270271
ground_cloud->points.push_back(ground_pt);
271272
(*ground_image)[index].g =
272273
static_cast<std::uint8_t>(((*cloud)[index].g + 255) / 2);

0 commit comments

Comments
 (0)