Skip to content
Snippets Groups Projects
Commit 6d3fd725 authored by Richard Angersbach's avatar Richard Angersbach
Browse files

Fix modernize-use-default-member-init in field module

parent 7a309694
Branches
No related merge requests found
......@@ -459,9 +459,9 @@ template <typename T, uint_t fs>
inline Cell FieldIterator<T,fs>::cell() const
{
fastestCoord_ = cell_idx_c( linePtr_ - lineBegin_ );
return Cell ( xBegin_ + *curX_,
return { xBegin_ + *curX_,
yBegin_ + *curY_,
zBegin_ + *curZ_ );
zBegin_ + *curZ_ };
}
......
......@@ -92,7 +92,7 @@ namespace field {
inline cell_idx_t & f() { return f_; }
inline cell_idx_t f() const { return f_; }
inline Cell cell() const { return Cell( x_, y_, z_ ); }
inline Cell cell() const { return { x_, y_, z_ }; }
const FieldMember * getField() const { return &field_; }
......
......@@ -114,7 +114,7 @@ namespace field {
inline cell_idx_t & f() { return f_; }
inline cell_idx_t f() const { return f_; }
inline Cell cell() const { return Cell( x_, y_, z_ ); }
inline Cell cell() const { return { x_, y_, z_ }; }
const FieldMember * getField() const { return &field_; }
......
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