Commit fc9ff0ce authored by Max Lyon's avatar Max Lyon
Browse files

minor coding style change

parent 122b292b
...@@ -142,14 +142,14 @@ using is_ovm_iterator = std::is_base_of<BaseIterator<typename std::remove_const< ...@@ -142,14 +142,14 @@ using is_ovm_iterator = std::is_base_of<BaseIterator<typename std::remove_const<
// so we can use range-for, e.g. for(const auto &vh: mesh.vertices()) works. // so we can use range-for, e.g. for(const auto &vh: mesh.vertices()) works.
template<class I> template<class I>
typename std::enable_if<is_ovm_iterator<I>::value, I>::type typename std::enable_if<is_ovm_iterator<I>::value, I>::type
begin(const std::pair<I, I> &iterpair) begin(const std::pair<I, I>& iterpair)
{ {
return iterpair.first; return iterpair.first;
} }
template<class I> template<class I>
typename std::enable_if<is_ovm_iterator<I>::value, I>::type typename std::enable_if<is_ovm_iterator<I>::value, I>::type
end(const std::pair<I, I> &iterpair) end(const std::pair<I, I>& iterpair)
{ {
return iterpair.second; return iterpair.second;
} }
......
...@@ -26,8 +26,8 @@ TEST_F(HexahedralMeshBase, HexVertexIterTest) { ...@@ -26,8 +26,8 @@ TEST_F(HexahedralMeshBase, HexVertexIterTest) {
TEST_F(HexahedralMeshBase, RangeForTest) { TEST_F(HexahedralMeshBase, RangeForTest) {
// no EXPECTs here, if it compiles, it'll work. // no EXPECTs here, if it compiles, it'll work.
generateHexahedralMesh(mesh_); generateHexahedralMesh(mesh_);
for (const auto &vh: mesh_.vertices()) {} for (const auto& vh: mesh_.vertices()) {}
const auto &constref = mesh_; const auto& constref = mesh_;
for (const auto &vh: constref.vertices()) {} for (const auto& vh: constref.vertices()) {}
} }
#endif #endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment