Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: crypto/rsa_private_key_win.cc

Issue 8533028: RSAPrivateKey vector push_back cleanups. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crypto/rsa_private_key_nss.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/rsa_private_key_win.cc
diff --git a/crypto/rsa_private_key_win.cc b/crypto/rsa_private_key_win.cc
index f0e64772caaee9ea7bb01f3ba130ed084535a0f3..f7363422db8b18928e95c8b2bd98690a0bc7f3d4 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;
}
« no previous file with comments | « crypto/rsa_private_key_nss.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698