mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
Remove redundant arguments from fstream constructors
Don't pass the default value of the openmode parameter explicitly.
This commit is contained in:
@@ -5,8 +5,7 @@
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
std::fstream fout;
|
||||
fout.open("commandoutput.h", std::ios::out);
|
||||
std::ofstream fout("commandoutput.h");
|
||||
if (!fout)
|
||||
return 1;
|
||||
fout << "#define COMMANDOUTPUT_DEFINE\n";
|
||||
|
||||
Reference in New Issue
Block a user