We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 111ef84 commit 252d80cCopy full SHA for 252d80c
unittest/log.h
@@ -45,11 +45,11 @@ static inline std::ostream& LOG(enum LogLevel level)
45
// https://github.com/google/ion/blob/master/ion/base/logging.h
46
static inline std::ostream& QCHECK(bool condition)
47
{
48
- static std::ostream null_stream(nullptr);
49
if (condition) {
50
- return std::cout;
+ static std::ostream null_stream(nullptr);
+ return null_stream;
51
}
52
- return null_stream;
+ return std::cout;
53
54
55
#endif // TESSERACT_UNITTEST_LOG_H_
0 commit comments