summaryrefslogtreecommitdiff
path: root/Source/cmTimestamp.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-06-14 22:37:36 +0200
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-06-14 22:37:36 +0200
commit24ab29b882548d9eceeb20d3ecbc5b9cc918bb7c (patch)
tree8b14c406c768e3fe8a934e9ed9ba95a35b91cdaf /Source/cmTimestamp.cxx
parentab8b77dd33e9a13551af402b2cf7ee3aaa5486b8 (diff)
downloadcmake-24ab29b882548d9eceeb20d3ecbc5b9cc918bb7c.tar.gz
Prefer istringstream and ostringstream over stringstream.
Use istringsream for parsing, ostringstream for generation.
Diffstat (limited to 'Source/cmTimestamp.cxx')
-rw-r--r--Source/cmTimestamp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTimestamp.cxx b/Source/cmTimestamp.cxx
index c624d0f935..2a70ed04ce 100644
--- a/Source/cmTimestamp.cxx
+++ b/Source/cmTimestamp.cxx
@@ -152,7 +152,7 @@ std::string cmTimestamp::AddTimestampComponent(char flag,
return std::string();
}
- std::stringstream ss;
+ std::ostringstream ss;
ss << static_cast<long int>(difftime(timeT, unixEpoch));
return ss.str();
}