summaryrefslogtreecommitdiff
path: root/src/LibgcryptARC4Encryptor.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2014-05-28 03:41:09 +0200
committerNils Maier <maierman@web.de>2014-05-29 19:38:34 +0200
commitb9fe4119c0f7165669e87cb1423efb030eb96c4d (patch)
treebe711120896da0db842537c0bf2a0b864c0182ec /src/LibgcryptARC4Encryptor.cc
parentc8ccb434288dff750ff7a8d22d0551043b1eb1e5 (diff)
New round of clang-modernize
Diffstat (limited to 'src/LibgcryptARC4Encryptor.cc')
-rw-r--r--src/LibgcryptARC4Encryptor.cc6
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;