forked from teamnwah/openmw-tes3coop
Fix a bunch of MSVC warnings
This commit is contained in:
parent
0c0379c1ef
commit
348c6f848e
1 changed files with 0 additions and 4 deletions
|
@ -76,12 +76,8 @@ int wrapApplication(int (*innerApplication)(int argc, char *argv[]), int argc, c
|
||||||
std::cerr.rdbuf (&sb);
|
std::cerr.rdbuf (&sb);
|
||||||
#else
|
#else
|
||||||
// Redirect cout and cerr to the log file
|
// Redirect cout and cerr to the log file
|
||||||
boost::filesystem::ofstream logfile;
|
|
||||||
logfile.open (boost::filesystem::path(cfgMgr.getLogPath() / logName));
|
logfile.open (boost::filesystem::path(cfgMgr.getLogPath() / logName));
|
||||||
|
|
||||||
std::ostream oldcout(cout_rdbuf);
|
|
||||||
std::ostream oldcerr(cerr_rdbuf);
|
|
||||||
|
|
||||||
coutsb.open (Misc::Tee(logfile, oldcout));
|
coutsb.open (Misc::Tee(logfile, oldcout));
|
||||||
cerrsb.open (Misc::Tee(logfile, oldcerr));
|
cerrsb.open (Misc::Tee(logfile, oldcerr));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue