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

[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;, std::ifstream::in);, std::ifstream::in);
std::string contents((std::istreambuf_iterator<char>(fs)),
......@@ -122,7 +122,7 @@ LFCControllerTest::readFile(const std::string& filename) const {
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