Browse Source

cmCTestSubmitHandler: Remove redundant c_str()

Daniel Pfeifer 9 years ago
parent
commit
5ae3966d75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/CTest/cmCTestSubmitHandler.cxx

+ 1 - 1
Source/CTest/cmCTestSubmitHandler.cxx

@@ -926,7 +926,7 @@ bool cmCTestSubmitHandler::SubmitUsingXMLRPC(
       return false;
       return false;
     }
     }
     size_t fileSize = static_cast<size_t>(st.st_size);
     size_t fileSize = static_cast<size_t>(st.st_size);
-    FILE* fp = cmsys::SystemTools::Fopen(local_file.c_str(), "rb");
+    FILE* fp = cmsys::SystemTools::Fopen(local_file, "rb");
     if (!fp) {
     if (!fp) {
       cmCTestLog(this->CTest, ERROR_MESSAGE,
       cmCTestLog(this->CTest, ERROR_MESSAGE,
                  "  Cannot open file: " << local_file << std::endl);
                  "  Cannot open file: " << local_file << std::endl);