From 348c6f848eac18463e728e15b7520c82ffecac10 Mon Sep 17 00:00:00 2001 From: Capostrophic <21265616+Capostrophic@users.noreply.github.com> Date: Thu, 9 Aug 2018 02:27:33 +0300 Subject: [PATCH] Fix a bunch of MSVC warnings --- components/misc/debugging.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/misc/debugging.hpp b/components/misc/debugging.hpp index a983a88df..c0c3f5a17 100644 --- a/components/misc/debugging.hpp +++ b/components/misc/debugging.hpp @@ -76,12 +76,8 @@ int wrapApplication(int (*innerApplication)(int argc, char *argv[]), int argc, c std::cerr.rdbuf (&sb); #else // Redirect cout and cerr to the log file - boost::filesystem::ofstream logfile; logfile.open (boost::filesystem::path(cfgMgr.getLogPath() / logName)); - std::ostream oldcout(cout_rdbuf); - std::ostream oldcerr(cerr_rdbuf); - coutsb.open (Misc::Tee(logfile, oldcout)); cerrsb.open (Misc::Tee(logfile, oldcerr));