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