summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestVC.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-25 14:20:26 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-25 14:20:26 (GMT)
commit261600bd090d1946c7c4fed80660b2ace216ddf8 (patch)
tree3f861e0029cfea1b94b6901b737f58df4f077b26 /Source/CTest/cmCTestVC.cxx
parent8c88787b8bc7f94b183dddd0d37d988522b46ceb (diff)
downloadCMake-261600bd090d1946c7c4fed80660b2ace216ddf8.zip
CMake-261600bd090d1946c7c4fed80660b2ace216ddf8.tar.gz
CMake-261600bd090d1946c7c4fed80660b2ace216ddf8.tar.bz2
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.
Diffstat (limited to 'Source/CTest/cmCTestVC.cxx')
-rw-r--r--Source/CTest/cmCTestVC.cxx2
1 files changed, 1 insertions, 1 deletions
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);
}
//----------------------------------------------------------------------------