diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-18 18:20:57 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-18 18:20:57 +0000 |
commit | e00a6c0abdc75244bc6c37944be12e93e29c9add (patch) | |
tree | bc5442c16408300e5fbecbb14d171675e68dd71e /chrome/tools | |
parent | bb2e756f8636761fb4b66b7554138cbfc7f1f0b0 (diff) | |
download | chromium_src-e00a6c0abdc75244bc6c37944be12e93e29c9add.zip chromium_src-e00a6c0abdc75244bc6c37944be12e93e29c9add.tar.gz chromium_src-e00a6c0abdc75244bc6c37944be12e93e29c9add.tar.bz2 |
Rename non-const payload() in base::Pickle to mutable_pyload()
base::Pickle has two methods - one is declared const and another one is not.
The non const version of the method is protected, which makes the const
payload() inaccessible in non-const Pickle instances.
Also made end_of_payload() public and removed non-const version of that method.
Review URL: https://codereview.chromium.org/11959022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools')
-rw-r--r-- | chrome/tools/ipclist/ipcfuzz.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/tools/ipclist/ipcfuzz.cc b/chrome/tools/ipclist/ipcfuzz.cc index 87fe2c2..5006307 100644 --- a/chrome/tools/ipclist/ipcfuzz.cc +++ b/chrome/tools/ipclist/ipcfuzz.cc @@ -501,7 +501,7 @@ struct FuzzTraits<gfx::Rect> { class PickleCracker : public Pickle { public: static void CopyMessageID(PickleCracker *dst, PickleCracker *src) { - memcpy(dst->payload(), src->payload(), sizeof(int)); + memcpy(dst->mutable_payload(), src->payload(), sizeof(int)); } }; |