summaryrefslogtreecommitdiffstats
path: root/crypto/rsa_private_key_win.cc
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-15 04:45:16 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-15 04:45:16 +0000
commit9dd6a2d196178500ddb27ee0d8e836fc7b76d2cf (patch)
tree539048269ab16db8ae93a543011473c691559063 /crypto/rsa_private_key_win.cc
parentcf99f3b5cdc644528028cd472dc80fe1e3de33f7 (diff)
downloadchromium_src-9dd6a2d196178500ddb27ee0d8e836fc7b76d2cf.zip
chromium_src-9dd6a2d196178500ddb27ee0d8e836fc7b76d2cf.tar.gz
chromium_src-9dd6a2d196178500ddb27ee0d8e836fc7b76d2cf.tar.bz2
RSAPrivateKey vector push_back cleanups.
BUG=none TEST=unittests Review URL: http://codereview.chromium.org/8533028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110043 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/rsa_private_key_win.cc')
-rw-r--r--crypto/rsa_private_key_win.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/rsa_private_key_win.cc b/crypto/rsa_private_key_win.cc
index f0e6477..f736342 100644
--- a/crypto/rsa_private_key_win.cc
+++ b/crypto/rsa_private_key_win.cc
@@ -222,9 +222,7 @@ bool RSAPrivateKey::ExportPublicKey(std::vector<uint8>* output) {
return false;
}
- for (size_t i = 0; i < encoded_length; ++i)
- output->push_back(encoded[i]);
-
+ output->assign(encoded.get(), encoded.get() + encoded_length);
return true;
}