Fix clang-tidy readability-redundant-string-cstr warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user