From: Danny Al-Gaaf Date: Wed, 13 Mar 2013 15:40:44 +0000 (+0100) Subject: auth/Crypto.cc prefer prefix ++operator for iterators X-Git-Tag: v0.60~79^2~26 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=81e00c14e966d7c4bc6af81aedc0ecdae9c49987;p=ceph.git auth/Crypto.cc prefer prefix ++operator for iterators Signed-off-by: Danny Al-Gaaf --- diff --git a/src/auth/Crypto.cc b/src/auth/Crypto.cc index 821995a291015..f2c82c3ab0c17 100644 --- a/src/auth/Crypto.cc +++ b/src/auth/Crypto.cc @@ -254,7 +254,7 @@ void CryptoAES::encrypt(const bufferptr& secret, const bufferlist& in, bufferlis CryptoPP::StreamTransformationFilter stfEncryptor(cbcEncryption, sink); for (std::list::const_iterator it = in.buffers().begin(); - it != in.buffers().end(); it++) { + it != in.buffers().end(); ++it) { in_buf = (const unsigned char *)it->c_str(); stfEncryptor.Put(in_buf, it->length()); @@ -289,7 +289,7 @@ void CryptoAES::decrypt(const bufferptr& secret, const bufferlist& in, CryptoPP::StringSink *sink = new CryptoPP::StringSink(decryptedtext); CryptoPP::StreamTransformationFilter stfDecryptor(cbcDecryption, sink); for (std::list::const_iterator it = in.buffers().begin(); - it != in.buffers().end(); it++) { + it != in.buffers().end(); ++it) { const unsigned char *in_buf = (const unsigned char *)it->c_str(); stfDecryptor.Put(in_buf, it->length()); }