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:
parent
8c88787b8b
commit
261600bd09
|
@ -86,7 +86,7 @@ std::string cmCTestVC::GetNightlyTime()
|
|||
t->tm_hour,
|
||||
t->tm_min,
|
||||
t->tm_sec);
|
||||
return current_time;
|
||||
return std::string(current_time);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue