diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-10-28 23:44:15 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-10-28 23:44:15 +0200 |
commit | 32bdfb274ec20318dd7d45fb62cd6e51323453f7 (patch) | |
tree | 1142386bf9fb2f90738876cc3e572c0be353c868 /src/ReedSolomon.cpp | |
parent | f0b272d734469552b9747ec3e00a5a3a22811749 (diff) | |
download | dabmux-32bdfb274ec20318dd7d45fb62cd6e51323453f7.tar.gz dabmux-32bdfb274ec20318dd7d45fb62cd6e51323453f7.tar.bz2 dabmux-32bdfb274ec20318dd7d45fb62cd6e51323453f7.zip |
Replace NULL by nullptr
Diffstat (limited to 'src/ReedSolomon.cpp')
-rw-r--r-- | src/ReedSolomon.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ReedSolomon.cpp b/src/ReedSolomon.cpp index 69e1191..7508747 100644 --- a/src/ReedSolomon.cpp +++ b/src/ReedSolomon.cpp @@ -47,7 +47,7 @@ ReedSolomon::ReedSolomon(int N, int K, bool reverse, int gfpoly, int firstRoot, rsData = init_rs_char(symsize, gfpoly, firstRoot, primElem, nroots, pad); - if (rsData == NULL) { + if (rsData == nullptr) { std::stringstream ss; ss << "Invalid Reed-Solomon parameters! " << "N=" << N << " ; K=" << K << " ; pad=" << pad; @@ -79,7 +79,7 @@ int ReedSolomon::encode(void* data, void* fec, unsigned long size) memcpy(buffer, input, myK); memcpy(&buffer[myK], output, myN - myK); - ret = decode_rs_char(rsData, buffer, NULL, 0); + ret = decode_rs_char(rsData, buffer, nullptr, 0); if ((ret != 0) && (ret != -1)) { memcpy(input, buffer, myK); memcpy(output, &buffer[myK], myN - myK); @@ -100,7 +100,7 @@ int ReedSolomon::encode(void* data, unsigned long size) int ret = 0; if (reverse) { - ret = decode_rs_char(rsData, input, NULL, 0); + ret = decode_rs_char(rsData, input, nullptr, 0); } else { encode_rs_char(rsData, input, &input[myK]); } |