Skip to content

Commit 8fa7443

Browse files
author
Michael Fero
committed
CPP-891 - Fixing compiler issues when using c++03 compilers
1 parent c97dd43 commit 8fa7443

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/src/integration/ssl_certificates.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -564,18 +564,18 @@ class SslCertificates {
564564
Utils::mkdir(ssl_path);
565565

566566
{
567-
std::ofstream out(ssl_path + Utils::PATH_SEPARATOR + "cassandra.crt",
568-
std::ios::binary | std::ios::trunc);
567+
std::string file = ssl_path + Utils::PATH_SEPARATOR + "cassandra.crt";
568+
std::ofstream out(file.c_str(), std::ios::binary | std::ios::trunc);
569569
out.write(reinterpret_cast<char const*>(cassandra_crt), sizeof(cassandra_crt));
570570
}
571571
{
572-
std::ofstream out(ssl_path + Utils::PATH_SEPARATOR + "keystore.jks",
573-
std::ios::binary | std::ios::trunc);
572+
std::string file = ssl_path + Utils::PATH_SEPARATOR + "keystore.jks";
573+
std::ofstream out(file.c_str(), std::ios::binary | std::ios::trunc);
574574
out.write(reinterpret_cast<char const*>(keystore_jks), sizeof(keystore_jks));
575575
}
576576
{
577-
std::ofstream out(ssl_path + Utils::PATH_SEPARATOR + "truststore.jks",
578-
std::ios::binary | std::ios::trunc);
577+
std::string file = ssl_path + Utils::PATH_SEPARATOR + "truststore.jks";
578+
std::ofstream out(file.c_str(), std::ios::binary | std::ios::trunc);
579579
out.write(reinterpret_cast<char const*>(truststore_jks), sizeof(truststore_jks));
580580
}
581581
}

0 commit comments

Comments
 (0)