Skip to content
Snippets Groups Projects
Commit 4c3fb320 authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

Fix clang-tidy issues in STLVector

parent ba12399b
No related branches found
No related tags found
1 merge request!21Fix clang tidy errors
......@@ -40,10 +40,9 @@ public:
* @param rankMPI MPI rank
* @param debugMode true: extra checks, slower
*/
STLVector(const std::string accessMode, const int rankMPI,
const bool debugMode = false);
STLVector(std::string accessMode, int rankMPI, bool debugMode = false);
~STLVector();
~STLVector() = default;
char *GetData();
char *GetMetadata();
......
......@@ -20,15 +20,12 @@ namespace adios
namespace capsule
{
STLVector::STLVector(const std::string accessMode, const int rankMPI,
const bool debugMode)
: Capsule("Heap", accessMode, rankMPI, debugMode)
STLVector::STLVector(std::string accessMode, int rankMPI, bool debugMode)
: Capsule{"Heap", std::move(accessMode), rankMPI, debugMode}
{
m_Data.reserve(16777216);
}
STLVector::~STLVector() {}
char *STLVector::GetData() { return m_Data.data(); }
char *STLVector::GetMetadata() { return m_Metadata.data(); }
......@@ -79,5 +76,5 @@ void STLVector::ResizeMetadata(const std::size_t size)
}
}
} // end namespace heap
} // end namespace
} // end namespace capsule
} // end namespace adios
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment