Commit 814a6cea authored by Marcin Siodelski's avatar Marcin Siodelski

[master] Use c-strings to create fstreams in lfc.

parent 2b0cdf49
......@@ -112,7 +112,7 @@ std::string
LFCControllerTest::readFile(const std::string& filename) const {
std::ifstream fs;
fs.open(filename, std::ifstream::in);
fs.open(filename.c_str(), std::ifstream::in);
std::string contents((std::istreambuf_iterator<char>(fs)),
std::istreambuf_iterator<char>());
fs.close();
......@@ -122,7 +122,7 @@ LFCControllerTest::readFile(const std::string& filename) const {
void
LFCControllerTest::writeFile(const std::string& filename,
const std::string& contents) const {
std::ofstream fs(filename, std::ofstream::out);
std::ofstream fs(filename.c_str(), std::ofstream::out);
if (fs.is_open()) {
fs << contents;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment