diff options
author | Martin Thomson <martin.thomson@gmail.com> | 2018-02-14 18:46:10 +1100 |
---|---|---|
committer | Martin Thomson <martin.thomson@gmail.com> | 2018-02-14 18:46:10 +1100 |
commit | 61cc1fa706af88f1159f5089840b09e2b838d0f4 (patch) | |
tree | 0de9959927f7108c6d6a4c378c641dbf071b13aa /cpputil/databuffer.cc | |
parent | a63322e39baae7b4c7f1f343891315973006493e (diff) | |
download | nss-hg-61cc1fa706af88f1159f5089840b09e2b838d0f4.tar.gz |
Bug 1309068 - Enable -Wshadow, r=franziskus
Diffstat (limited to 'cpputil/databuffer.cc')
-rw-r--r-- | cpputil/databuffer.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpputil/databuffer.cc b/cpputil/databuffer.cc index d60ebccb3..1420d76b4 100644 --- a/cpputil/databuffer.cc +++ b/cpputil/databuffer.cc @@ -18,12 +18,12 @@ namespace nss_test { -void DataBuffer::Assign(const uint8_t* data, size_t len) { - if (data) { - Allocate(len); - memcpy(static_cast<void*>(data_), static_cast<const void*>(data), len); +void DataBuffer::Assign(const uint8_t* d, size_t l) { + if (d) { + Allocate(l); + memcpy(static_cast<void*>(data_), static_cast<const void*>(d), l); } else { - assert(len == 0); + assert(l == 0); data_ = nullptr; len_ = 0; } |