From 261600bd090d1946c7c4fed80660b2ace216ddf8 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 25 Feb 2009 09:20:26 -0500 Subject: 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. --- Source/CTest/cmCTestVC.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CTest/cmCTestVC.cxx b/Source/CTest/cmCTestVC.cxx index cb4aa2d..ccc6fcb 100644 --- a/Source/CTest/cmCTestVC.cxx +++ b/Source/CTest/cmCTestVC.cxx @@ -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); } //---------------------------------------------------------------------------- -- cgit v0.12