Changes in src/Common/UniqueName.cc [5f2f2d7:843054c2]
- File:
-
- 1 edited
-
src/Common/UniqueName.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/UniqueName.cc
r5f2f2d7 r843054c2 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jun 8 14:47:49201513 // Update Count : 312 // Last Modified On : Tue May 19 07:23:41 2015 13 // Update Count : 1 14 14 // 15 15 16 16 #include <string> 17 #include <s stream>17 #include <strstream> 18 18 19 19 #include "UniqueName.h" … … 23 23 24 24 std::string UniqueName::newName( const std::string &additional ) { 25 std::ostr ingstream os;25 std::ostrstream os; 26 26 os << base << additional << count++; 27 return os.str();27 return std::string( os.str(), os.pcount() ); 28 28 } 29 29
Note:
See TracChangeset
for help on using the changeset viewer.