summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-16 13:46:54 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-06-16 13:46:54 (GMT)
commit0e523d0612f50373486c2c2360004bb8ce859f92 (patch)
tree6194d2f6871bda094e9eb86a0a1f29ce9644f2a5 /Tests
parent993991a07de48079233b3a04902a1f34ddfb97df (diff)
parented5fa48d50ea0605b47598ff5b1d765548e8d638 (diff)
downloadCMake-0e523d0612f50373486c2c2360004bb8ce859f92.zip
CMake-0e523d0612f50373486c2c2360004bb8ce859f92.tar.gz
CMake-0e523d0612f50373486c2c2360004bb8ce859f92.tar.bz2
Merge topic 'cleanup-streams'
ed5fa48d cmXMLWriter: use ifstream from KWSys 24ab29b8 Prefer istringstream and ostringstream over stringstream. ab8b77dd Remove redundant arguments from fstream constructors eb79fa72 Access std::ios_base with std::ios
Diffstat (limited to 'Tests')
-rw-r--r--Tests/AliasTarget/commandgenerator.cpp3
-rw-r--r--Tests/AliasTarget/targetgenerator.cpp3
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";