diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-06-13 20:56:48 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-06-14 20:28:55 (GMT) |
commit | ab8b77dd33e9a13551af402b2cf7ee3aaa5486b8 (patch) | |
tree | 8cc5d93cc2140ea0e282b3f99932c9d01d9a6f81 /Tests/AliasTarget | |
parent | eb79fa726090410dbfceb64e29604320cc65d92f (diff) | |
download | CMake-ab8b77dd33e9a13551af402b2cf7ee3aaa5486b8.zip CMake-ab8b77dd33e9a13551af402b2cf7ee3aaa5486b8.tar.gz CMake-ab8b77dd33e9a13551af402b2cf7ee3aaa5486b8.tar.bz2 |
Remove redundant arguments from fstream constructors
Don't pass the default value of the openmode parameter explicitly.
Diffstat (limited to 'Tests/AliasTarget')
-rw-r--r-- | Tests/AliasTarget/commandgenerator.cpp | 3 | ||||
-rw-r--r-- | Tests/AliasTarget/targetgenerator.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/Tests/AliasTarget/commandgenerator.cpp b/Tests/AliasTarget/commandgenerator.cpp index aaab014..c4d80a1 100644 --- a/Tests/AliasTarget/commandgenerator.cpp +++ b/Tests/AliasTarget/commandgenerator.cpp @@ -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"; diff --git a/Tests/AliasTarget/targetgenerator.cpp b/Tests/AliasTarget/targetgenerator.cpp index b3e6ee2..4de4792 100644 --- a/Tests/AliasTarget/targetgenerator.cpp +++ b/Tests/AliasTarget/targetgenerator.cpp @@ -3,8 +3,7 @@ int main(int argc, char** argv) { - std::fstream fout; - fout.open("targetoutput.h", std::ios::out); + std::ofstream fout("targetoutput.h"); if (!fout) return 1; fout << "#define TARGETOUTPUT_DEFINE\n"; |