Commit 725514e1 authored by Sean McBride's avatar Sean McBride

auto-fixed clang-tidy readability-redundant-string-init warnings

parent c1b20f65
......@@ -759,7 +759,7 @@ int vtkMINCImageWriter::CreateMINCVariables(
// ------------------------
// Find the children of the root variable
std::string rootChildren = MI_EMPTY_STRING;
std::string rootChildren;
int nvars = static_cast<int>(variables.size());
int ivar = 0;
......@@ -1001,7 +1001,7 @@ int vtkMINCImageWriter::CreateMINCVariables(
vtkMINCImageWriterPutAttributeTextMacro(MIident, ident.c_str());
// For history, include any previous history
std::string history = MI_EMPTY_STRING;
std::string history;
const char *previousHistory = nullptr;
if (this->ImageAttributes)
{
......
......@@ -48,7 +48,7 @@ int TestXMLHyperTreeGridIO(int argc, char* argv[])
vtkDataArray *coords;
int ntp;
std::string read1 = "";
std::string read1;
read_in->GetGridSize(size);
read1 += "SIZE "+std::to_string(size[0])+","+std::to_string(size[1])+","+std::to_string(size[2])+"\n";
......@@ -92,7 +92,7 @@ int TestXMLHyperTreeGridIO(int argc, char* argv[])
reader->Update();
vtkHyperTreeGrid *wrote_out = reader->GetOutput();
std::string read2 = "";
std::string read2;
wrote_out->GetGridSize(size);
read2 += "SIZE "+std::to_string(size[0])+","+std::to_string(size[1])+","+std::to_string(size[2])+"\n";
read2 +="DIMS "+std::to_string(wrote_out->GetDimension())+"\n";
......
......@@ -223,7 +223,7 @@ const std::string& vtkCompositeDataDisplayAttributes::GetBlockMaterial(vtkDataOb
return iter->second;
}
static const std::string nomat = "";
static const std::string nomat;
return nomat;
}
......
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