From ecbdba5216e4dfccc22a28790ec5e5685ab28864 Mon Sep 17 00:00:00 2001 From: Emily Boudreaux Date: Thu, 20 Mar 2025 14:30:40 -0400 Subject: [PATCH] refactor(opatIO-and-meshIO): removed unused header file includes --- src/meshIO/private/meshIO.cpp | 2 +- src/meshIO/public/meshIO.h | 2 +- src/opatIO/private/opatIO.cpp | 2 +- src/opatIO/public/opatIO.h | 1 - 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/meshIO/private/meshIO.cpp b/src/meshIO/private/meshIO.cpp index 01619bb..a894a14 100644 --- a/src/meshIO/private/meshIO.cpp +++ b/src/meshIO/private/meshIO.cpp @@ -26,7 +26,7 @@ #include "meshIO.h" -MeshIO::MeshIO(const std::string &mesh_file) +MeshIO::MeshIO(const std::string mesh_file) { mesh_file_ = mesh_file; std::ifstream mesh_stream(mesh_file); diff --git a/src/meshIO/public/meshIO.h b/src/meshIO/public/meshIO.h index aad8bf7..1a2c4db 100644 --- a/src/meshIO/public/meshIO.h +++ b/src/meshIO/public/meshIO.h @@ -39,7 +39,7 @@ public: * @brief Constructor that initializes the MeshIO object with a mesh file. * @param mesh_file The name of the mesh file. */ - MeshIO(const std::string &mesh_file); + MeshIO(const std::string mesh_file); /** * @brief Destructor for the MeshIO class. diff --git a/src/opatIO/private/opatIO.cpp b/src/opatIO/private/opatIO.cpp index 43960f5..bdbf45b 100644 --- a/src/opatIO/private/opatIO.cpp +++ b/src/opatIO/private/opatIO.cpp @@ -56,7 +56,7 @@ T swap_bytes(T value) { // Constructor OpatIO::OpatIO() {} -OpatIO::OpatIO(std::string filename) : filename(filename) { +OpatIO::OpatIO(const std::string filename) : filename(filename) { load(); } diff --git a/src/opatIO/public/opatIO.h b/src/opatIO/public/opatIO.h index f822420..49b6bcf 100644 --- a/src/opatIO/public/opatIO.h +++ b/src/opatIO/public/opatIO.h @@ -21,7 +21,6 @@ #ifndef OPATIO_H #define OPATIO_H -#include #include #include #include