THRIFT-5766 Replace std::endl with "\n"
Patch: Carel Combrink
This closes #2943
diff --git a/lib/cpp/test/concurrency/TimerManagerTests.h b/lib/cpp/test/concurrency/TimerManagerTests.h
index 2d1a262..9a53232 100644
--- a/lib/cpp/test/concurrency/TimerManagerTests.h
+++ b/lib/cpp/test/concurrency/TimerManagerTests.h
@@ -46,7 +46,7 @@
_success(false),
_done(false) {}
- ~Task() override { std::cerr << this << std::endl; }
+ ~Task() override { std::cerr << this << '\n'; }
void run() override {
@@ -84,7 +84,7 @@
timerManager.threadFactory(shared_ptr<ThreadFactory>(new ThreadFactory()));
timerManager.start();
if (timerManager.state() != TimerManager::STARTED) {
- std::cerr << "timerManager is not in the STARTED state, but should be" << std::endl;
+ std::cerr << "timerManager is not in the STARTED state, but should be" << '\n';
return false;
}
@@ -104,15 +104,15 @@
}
if (!task->_done) {
- std::cerr << "task is not done, but it should have executed" << std::endl;
+ std::cerr << "task is not done, but it should have executed" << '\n';
return false;
}
- std::cout << "\t\t\t" << (task->_success ? "Success" : "Failure") << "!" << std::endl;
+ std::cout << "\t\t\t" << (task->_success ? "Success" : "Failure") << "!" << '\n';
}
if (orphanTask->_done) {
- std::cerr << "orphan task is done, but it should not have executed" << std::endl;
+ std::cerr << "orphan task is done, but it should not have executed" << '\n';
return false;
}