filefuncs.cpp: Simplify the outputFileContent function

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2023-06-13 00:35:09 +02:00
parent d41d492686
commit c1b0184b64
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 4 deletions

View File

@ -17,7 +17,4 @@ string getFileContent(const string& file)
} else throw Yerbacon::Exception("Could not open \"" + file + "\" : " + generic_category().message(errno));
}
void outputFileContent(const string& file, const string_view content) {
ofstream outputFile (file, ofstream::out);
outputFile << content;
}
void outputFileContent(const string& file, const string_view content) { ofstream(file, ofstream::out) << content;}