Commit 867c2066 authored by Dan Lipsa's avatar Dan Lipsa

Override and vector init warnings.

parent 447b2067
......@@ -42,7 +42,7 @@ public:
vtkTypeMacro(vtkSegYReader, vtkDataSetAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent) override;
vtkSegYReader();
~vtkSegYReader();
~vtkSegYReader() override;
vtkSetStringMacro(FileName);
vtkGetStringMacro(FileName);
......
......@@ -182,9 +182,9 @@ bool vtkSegYReaderInternal::Is3DComputeParameters(
// The samples are uniformly placed at sample interval depths
// Dividing by 1000.0 to convert from microseconds to milliseconds.
float zStep = this->SampleInterval / 1000.0;
std::array<double, 3> o = {coordFirst[0],
coordFirst[1],
- zStep * (this->SampleCountPerTrace - 1)};
std::array<double, 3> o = {{coordFirst[0],
coordFirst[1],
- zStep * (this->SampleCountPerTrace - 1)}};
std::copy(o.begin(), o.end(), origin);
auto s = {xStep, yStep, zStep};
std::copy(s.begin(), s.end(), spacing);
......
Markdown is supported
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