Commit 265b778a authored by Robert Maynard's avatar Robert Maynard
Browse files

Fix unused warning in VTKDataSetReaderBase.

parent af2ae8e6
......@@ -404,7 +404,7 @@ private:
char vbuf[vlen];
this->DataFile->Stream.read(vbuf, vlen - 1);
vbuf[vlen - 1] = '\0';
if (std::string(vbuf) != "# vtk DataFile Version")
if (std::string(vbuf) != std::string(vstring))
{
throw vtkm::io::ErrorIO("Incorrect file format.");
}
......
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