Fix clang-tidy readability-redundant-string-cstr warnings

This commit is contained in:
Eduardo Almeida
2022-10-17 20:35:40 +00:00
parent 219d958ee4
commit 7c182618ed
74 changed files with 215 additions and 220 deletions

View File

@@ -79,7 +79,7 @@ Create2DPlotFile()
plot.AddDataset(dataset);
// Open the plot file.
std::ofstream plotFile(plotFileName.c_str());
std::ofstream plotFile(plotFileName);
// Write the plot file.
plot.GenerateOutput(plotFile);
@@ -153,7 +153,7 @@ Create2DPlotWithErrorBarsFile()
plot.AddDataset(dataset);
// Open the plot file.
std::ofstream plotFile(plotFileName.c_str());
std::ofstream plotFile(plotFileName);
// Write the plot file.
plot.GenerateOutput(plotFile);
@@ -233,7 +233,7 @@ Create3DPlotFile()
plot.AddDataset(dataset);
// Open the plot file.
std::ofstream plotFile(plotFileName.c_str());
std::ofstream plotFile(plotFileName);
// Write the plot file.
plot.GenerateOutput(plotFile);