| 13329 | |
| 13330 | #if defined(_MSC_VER) |
| 13331 | TempFile::TempFile() |
| 13332 | { |
| 13333 | if (tmpnam_s(m_buffer)) |
| 13334 | { |
| 13335 | CATCH_RUNTIME_ERROR("Could not get a temp filename"); |
| 13336 | } |
| 13337 | if (fopen_s(&m_file, m_buffer, "w")) |
| 13338 | { |
| 13339 | char buffer[100]; |
| 13340 | if (strerror_s(buffer, errno)) |
| 13341 | { |
| 13342 | CATCH_RUNTIME_ERROR("Could not translate errno to a string"); |
| 13343 | } |
| 13344 | CATCH_RUNTIME_ERROR("Could not open the temp file: '" << m_buffer << "' because: " << buffer); |
| 13345 | } |
| 13346 | } |
| 13347 | #else |
| 13348 | TempFile::TempFile() |
| 13349 | { |
nothing calls this directly
no outgoing calls
no test coverage detected