diff options
author | Simon Rettberg | 2018-07-24 13:08:25 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-07-24 13:08:25 +0200 |
commit | 9ba63d1460db41c219b638212b42476164fcfdff (patch) | |
tree | 55e3249c18c50ec8e90278e639732988845c990c /src/shared/util.h | |
parent | [server] Fix logic error (diff) | |
download | pvs2-9ba63d1460db41c219b638212b42476164fcfdff.tar.gz pvs2-9ba63d1460db41c219b638212b42476164fcfdff.tar.xz pvs2-9ba63d1460db41c219b638212b42476164fcfdff.zip |
Update code style, fix compiler warnings
- Use nullptr instead of NULL for better warnings in case of mistakes
- Get rid of VLAs which are not in C++11 actually
- Fix implicit signed <-> unsigned mismatches by adding checks and casts
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index c2e5145..e9530a8 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -10,6 +10,6 @@ #include <QByteArray> -QByteArray genSha1(const QByteArray* a, const QByteArray* b = NULL, const QByteArray* c = NULL, const QByteArray* d = NULL, const QByteArray* e = NULL); +QByteArray genSha1(const QByteArray* a, const QByteArray* b = nullptr, const QByteArray* c = nullptr, const QByteArray* d = nullptr, const QByteArray* e = nullptr); #endif /* UTIL_H_ */ |