From ba330b0bfafd1da99053a98d283bb3a8b30df527 Mon Sep 17 00:00:00 2001 From: zhouyuan chen <867442167@qq.com> Date: Tue, 17 Oct 2023 14:35:37 -0400 Subject: [PATCH] change the string to the file::path --- src/wmtk/io/EdgeMeshReader.cpp | 2 +- src/wmtk/io/EdgeMeshReader.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wmtk/io/EdgeMeshReader.cpp b/src/wmtk/io/EdgeMeshReader.cpp index 0914e9cb8b..1026f4274d 100644 --- a/src/wmtk/io/EdgeMeshReader.cpp +++ b/src/wmtk/io/EdgeMeshReader.cpp @@ -3,7 +3,7 @@ #include namespace wmtk { -EdgeMeshReader::EdgeMeshReader(const std::string& filename, const file_type type) +EdgeMeshReader::EdgeMeshReader(const std::filesystem::path& filename, const file_type type) : m_filename(filename) , m_type(type) {} diff --git a/src/wmtk/io/EdgeMeshReader.hpp b/src/wmtk/io/EdgeMeshReader.hpp index acde29ce8c..ea4380bcbc 100644 --- a/src/wmtk/io/EdgeMeshReader.hpp +++ b/src/wmtk/io/EdgeMeshReader.hpp @@ -10,7 +10,7 @@ class EdgeMeshReader public: enum data_type { V, L, VT, VN, VP, COMMENT }; enum file_type { OBJ, OFF }; - EdgeMeshReader(const std::string& filename, const file_type type); + EdgeMeshReader(const std::filesystem::path& filename, const file_type type); void read( Eigen::Matrix& edges, Eigen::MatrixXd& vertices, @@ -45,7 +45,7 @@ class EdgeMeshReader } } - std::string m_filename; + const std::filesystem::path m_filename; file_type m_type; }; } // namespace wmtk \ No newline at end of file