summaryrefslogtreecommitdiff
path: root/src/mongo/util/progress_meter.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2019-02-27 10:19:37 -0500
committerBilly Donahue <billy.donahue@mongodb.com>2019-02-28 12:26:44 -0500
commit812890b7952f65241c4ae9076d698cbcc9cd5bbd (patch)
treedd870c196db0712f48ed5ba92c0be212c9187055 /src/mongo/util/progress_meter.cpp
parent34cf12d1ea67a7f11266452e44f5c2241f453f23 (diff)
downloadmongo-812890b7952f65241c4ae9076d698cbcc9cd5bbd.tar.gz
SERVER-39863 remove std using namespace directives
Diffstat (limited to 'src/mongo/util/progress_meter.cpp')
-rw-r--r--src/mongo/util/progress_meter.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mongo/util/progress_meter.cpp b/src/mongo/util/progress_meter.cpp
index 1d368de3e57..9ad977581ec 100644
--- a/src/mongo/util/progress_meter.cpp
+++ b/src/mongo/util/progress_meter.cpp
@@ -36,8 +36,6 @@
#include "mongo/util/log.h"
-using namespace std;
-
namespace mongo {
void ProgressMeter::reset(unsigned long long total, int secondsBetween, int checkInterval) {
@@ -80,16 +78,16 @@ bool ProgressMeter::hit(int n) {
if (!_units.empty()) {
out << " (" << _units << ")";
}
- out << endl;
+ out << std::endl;
}
_lastTime = t;
return true;
}
-string ProgressMeter::toString() const {
+std::string ProgressMeter::toString() const {
if (!_active)
return "";
- stringstream buf;
+ std::stringstream buf;
if (_total) {
buf << _name << ": " << _done << '/' << _total << ' ' << (_done * 100) / _total << '%';
} else {
@@ -97,7 +95,7 @@ string ProgressMeter::toString() const {
}
if (!_units.empty()) {
- buf << " (" << _units << ")" << endl;
+ buf << " (" << _units << ")" << std::endl;
}
return buf.str();