Skip to content

Commit

Permalink
Style fix for open3d/utility/Helper.h
Browse files Browse the repository at this point in the history
Using {} initializer for WritePointCloudOption on tests/t/io/PointCloudIO.cpp
  • Loading branch information
samypr100 committed Feb 14, 2023
1 parent 149f14f commit 4284a20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cpp/open3d/utility/Helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ inline std::string FastFormatString(const std::string& format, Args... args) {
buffer + size_s); // no + 1 since we ignore the \0
std::free(buffer); // asprintf calls malloc
return ret;
#endif // _WIN32
#endif // _WIN32
};

void Sleep(int milliseconds);
Expand Down
15 changes: 5 additions & 10 deletions cpp/tests/t/io/PointCloudIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,7 @@ TEST(TPointCloudIO, ReadWritePointCloudAsPCD) {

EXPECT_TRUE(t::io::WritePointCloud(
filename_ascii, input_pcd,
open3d::io::WritePointCloudOption(
/*ascii*/ true, /*compressed*/ false, false, {})));
{/*ascii*/ true, /*compressed*/ false, false}));

t::geometry::PointCloud ascii_pcd;
t::io::ReadPointCloud(filename_ascii, ascii_pcd);
Expand All @@ -422,8 +421,7 @@ TEST(TPointCloudIO, ReadWritePointCloudAsPCD) {

EXPECT_TRUE(t::io::WritePointCloud(
filename_binary, input_pcd,
open3d::io::WritePointCloudOption(
/*ascii*/ false, /*compressed*/ false, false, {})));
{/*ascii*/ false, /*compressed*/ false, false}));

t::geometry::PointCloud binary_pcd;
t::io::ReadPointCloud(filename_binary, binary_pcd);
Expand All @@ -439,8 +437,7 @@ TEST(TPointCloudIO, ReadWritePointCloudAsPCD) {

EXPECT_TRUE(t::io::WritePointCloud(
filename_binary_compressed, input_pcd,
open3d::io::WritePointCloudOption(
/*ascii*/ false, /*compressed*/ true, false, {})));
{/*ascii*/ false, /*compressed*/ true, false}));

t::geometry::PointCloud binary_compressed_pcd;
t::io::ReadPointCloud(filename_binary_compressed, binary_compressed_pcd);
Expand All @@ -464,8 +461,7 @@ TEST(TPointCloudIO, ReadWritePointCloudAsPCD) {

EXPECT_TRUE(t::io::WritePointCloud(
filename_ascii_f32, input_pcd,
open3d::io::WritePointCloudOption(
/*ascii*/ true, /*compressed*/ false, false, {})));
{/*ascii*/ true, /*compressed*/ false, false}));

t::geometry::PointCloud ascii_f32_pcd;
t::io::ReadPointCloud(filename_ascii_f32, ascii_f32_pcd);
Expand All @@ -487,8 +483,7 @@ TEST(TPointCloudIO, ReadWritePointCloudAsPCD) {

EXPECT_TRUE(t::io::WritePointCloud(
filename_ascii_uint32, input_pcd,
open3d::io::WritePointCloudOption(
/*ascii*/ true, /*compressed*/ false, false, {})));
{/*ascii*/ true, /*compressed*/ false, false}));

t::geometry::PointCloud ascii_uint32_pcd;
t::io::ReadPointCloud(filename_ascii_uint32, ascii_uint32_pcd);
Expand Down

0 comments on commit 4284a20

Please sign in to comment.