summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscrubbed <scrubbed@scrubbed>2017-02-15 15:06:43 -0800
committerVictor Costan <pwnall@chromium.org>2017-03-08 11:42:30 -0800
commit039b3a7ace1ffe88e03218d59f8c370577e1bdf2 (patch)
treebd8956058579a506c30dc7d44ce8ca6c34cf94cb
parent3c706d22306efbd0d6ac050cb48179e1dcfbff7a (diff)
downloadsnappy-039b3a7ace1ffe88e03218d59f8c370577e1bdf2.tar.gz
snappy-039b3a7ace1ffe88e03218d59f8c370577e1bdf2.tar.bz2
snappy-039b3a7ace1ffe88e03218d59f8c370577e1bdf2.zip
Add std:: prefix to STL non-type names.
In order to disable global using declarations, this CL qualifies stl names with the std namespace.
-rw-r--r--snappy_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/snappy_unittest.cc b/snappy_unittest.cc
index ca95e0d..6b2fd44 100644
--- a/snappy_unittest.cc
+++ b/snappy_unittest.cc
@@ -454,8 +454,8 @@ static void Measure(const char* data,
}
}
- sort(ctime, ctime + kRuns);
- sort(utime, utime + kRuns);
+ std::sort(ctime, ctime + kRuns);
+ std::sort(utime, utime + kRuns);
const int med = kRuns/2;
float comp_rate = (length / ctime[med]) * repeats / 1048576.0;