summaryrefslogtreecommitdiffstats
path: root/base/pickle.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-10 22:20:33 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-10 22:20:33 +0000
commit9193d2f406ce80e36bcb17cdf59badb844e719bc (patch)
tree86a371ead8bef8f770e2989b9a4c0773048f003d /base/pickle.cc
parent1aa5f22e84542f77eb136241066cf41d1a002497 (diff)
downloadchromium_src-9193d2f406ce80e36bcb17cdf59badb844e719bc.zip
chromium_src-9193d2f406ce80e36bcb17cdf59badb844e719bc.tar.gz
chromium_src-9193d2f406ce80e36bcb17cdf59badb844e719bc.tar.bz2
Cleanup: Remove a static initializer in pickle.cc.
BUG=94925 TEST=none Review URL: http://codereview.chromium.org/8207011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104802 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/pickle.cc')
-rw-r--r--base/pickle.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/base/pickle.cc b/base/pickle.cc
index 238c3a1..28b6292 100644
--- a/base/pickle.cc
+++ b/base/pickle.cc
@@ -7,15 +7,13 @@
#include <stdlib.h>
#include <algorithm> // for max()
-#include <limits>
//------------------------------------------------------------------------------
// static
const int Pickle::kPayloadUnit = 64;
-// We mark a read only pickle with a special capacity_.
-static const size_t kCapacityReadOnly = std::numeric_limits<size_t>::max();
+static const size_t kCapacityReadOnly = static_cast<size_t>(-1);
// Payload is uint32 aligned.
@@ -386,7 +384,7 @@ char* Pickle::BeginWrite(size_t length) {
return NULL;
#ifdef ARCH_CPU_64_BITS
- DCHECK_LE(length, std::numeric_limits<uint32>::max());
+ DCHECK_LE(length, kuint32max);
#endif
header_->payload_size = static_cast<uint32>(new_size);