summaryrefslogtreecommitdiff
path: root/snappy.cc
diff options
context:
space:
mode:
authorBehzad Nouri <bnouri@google.com>2016-11-28 08:49:41 -0800
committerAlkis Evlogimenos <alkis@google.com>2017-01-26 21:43:13 +0100
commit818b583387a5288cb2778031655a5e764e5ad124 (patch)
tree64e243343aeae35740d29f40290a0756623e309d /snappy.cc
parent27c5d86527532a8a2d73ae0e6d78bdbd626c3590 (diff)
downloadsnappy-818b583387a5288cb2778031655a5e764e5ad124.tar.gz
snappy-818b583387a5288cb2778031655a5e764e5ad124.tar.bz2
snappy-818b583387a5288cb2778031655a5e764e5ad124.zip
adds std:: to stl types (#061)
Diffstat (limited to 'snappy.cc')
-rw-r--r--snappy.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/snappy.cc b/snappy.cc
index 7b12fb1..5138146 100644
--- a/snappy.cc
+++ b/snappy.cc
@@ -433,7 +433,8 @@ char* CompressFragment(const char* input,
// We have a 4-byte match at ip, and no need to emit any
// "literal bytes" prior to ip.
const char* base = ip;
- pair<size_t, bool> p = FindMatchLength(candidate + 4, ip + 4, ip_end);
+ std::pair<size_t, bool> p =
+ FindMatchLength(candidate + 4, ip + 4, ip_end);
size_t matched = 4 + p.first;
ip += matched;
size_t offset = base - candidate;
@@ -1216,7 +1217,7 @@ class SnappyScatteredWriter {
// We need random access into the data generated so far. Therefore
// we keep track of all of the generated data as an array of blocks.
// All of the blocks except the last have length kBlockSize.
- vector<char*> blocks_;
+ std::vector<char*> blocks_;
size_t expected_;
// Total size of all fully generated blocks so far
@@ -1399,7 +1400,7 @@ class SnappySinkAllocator {
}
Sink* dest_;
- vector<Datablock> blocks_;
+ std::vector<Datablock> blocks_;
// Note: copying this object is allowed
};