Remove redundant arguments from fstream constructors

Don't pass the default value of the openmode parameter explicitly.
This commit is contained in:
Daniel Pfeifer
2016-06-13 22:56:48 +02:00
parent eb79fa7260
commit ab8b77dd33
8 changed files with 10 additions and 12 deletions

View File

@@ -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";