Mercurial > hg > orthanc
diff UnitTestsSources/LoggingTests.cpp @ 4003:3c19371090c3
removing useless LoggingMemento
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 06 Jun 2020 11:08:59 +0200 |
parents | f9863630ec7f |
children | 9b5ace33a00d |
line wrap: on
line diff
--- a/UnitTestsSources/LoggingTests.cpp Sat Jun 06 10:58:36 2020 +0200 +++ b/UnitTestsSources/LoggingTests.cpp Sat Jun 06 11:08:59 2020 +0200 @@ -105,13 +105,14 @@ class LoggingMementoScope { public: - LoggingMementoScope() : memento_(CreateLoggingMemento()) {} + LoggingMementoScope() + { + } + ~LoggingMementoScope() { - RestoreLoggingMemento(memento_); + Orthanc::Logging::Reset(); } - private: - LoggingMemento memento_; }; }