Add a namespace to OpenFStream

For consistency with the other functions in FileUtil.h.
This commit is contained in:
JosJuice
2017-01-15 22:46:43 +01:00
parent f09ceaa735
commit cf94ce6305
15 changed files with 24 additions and 24 deletions

View File

@ -162,8 +162,6 @@ std::string& GetExeDirectory();
bool WriteStringToFile(const std::string& str, const std::string& filename);
bool ReadFileToString(const std::string& filename, std::string& str);
} // namespace
// To deal with Windows being dumb at unicode:
template <typename T>
void OpenFStream(T& fstream, const std::string& filename, std::ios_base::openmode openmode)
@ -174,3 +172,5 @@ void OpenFStream(T& fstream, const std::string& filename, std::ios_base::openmod
fstream.open(filename.c_str(), openmode);
#endif
}
} // namespace