diff options
| author | Nils Maier <maierman@web.de> | 2014-05-28 03:41:09 +0200 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2014-05-29 19:38:34 +0200 |
| commit | b9fe4119c0f7165669e87cb1423efb030eb96c4d (patch) | |
| tree | be711120896da0db842537c0bf2a0b864c0182ec /src/LibgcryptARC4Encryptor.cc | |
| parent | c8ccb434288dff750ff7a8d22d0551043b1eb1e5 (diff) | |
New round of clang-modernize
Diffstat (limited to 'src/LibgcryptARC4Encryptor.cc')
| -rw-r--r-- | src/LibgcryptARC4Encryptor.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LibgcryptARC4Encryptor.cc b/src/LibgcryptARC4Encryptor.cc index 0290e4e6..08711633 100644 --- a/src/LibgcryptARC4Encryptor.cc +++ b/src/LibgcryptARC4Encryptor.cc @@ -51,7 +51,7 @@ void handleError(gcry_error_t err) } // namespace ARC4Encryptor::ARC4Encryptor() - : hdl_(0) + : hdl_(nullptr) {} ARC4Encryptor::~ARC4Encryptor() @@ -71,7 +71,7 @@ void ARC4Encryptor::init(const unsigned char* key, size_t keyLength) if((r = gcry_cipher_setkey(hdl_, key, keyLength))) { handleError(r); } - if((r = gcry_cipher_setiv(hdl_, 0, 0))) { + if((r = gcry_cipher_setiv(hdl_, nullptr, 0))) { handleError(r); } } @@ -84,7 +84,7 @@ void ARC4Encryptor::encrypt size_t inlen; if(in == out) { out = const_cast<unsigned char*>(in); - in = 0; + in = nullptr; inlen = 0; } else { inlen = len; |
