COMP: Fix cmCTestVC char[]->string Borland warning

The Borland compiler warns about returning a char[] from a function with
return type std::string without an explicit construction.
This commit is contained in:
Brad King 2009-02-25 09:20:26 -05:00
parent 8c88787b8b
commit 261600bd09

View File

@ -86,7 +86,7 @@ std::string cmCTestVC::GetNightlyTime()
t->tm_hour, t->tm_hour,
t->tm_min, t->tm_min,
t->tm_sec); t->tm_sec);
return current_time; return std::string(current_time);
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------