From 1c0172cca4f1e90679321912e20436a7f42f122d Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Sat, 24 Feb 2018 15:32:06 +0100 Subject: more nullptr --- plugins/ListeningTo/src/stdafx.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/ListeningTo/src') diff --git a/plugins/ListeningTo/src/stdafx.h b/plugins/ListeningTo/src/stdafx.h index c8b4d5ca1f..9aa52d28ea 100644 --- a/plugins/ListeningTo/src/stdafx.h +++ b/plugins/ListeningTo/src/stdafx.h @@ -100,18 +100,18 @@ void m_log(const wchar_t *function, const wchar_t *fmt, ...); static bool IsEmpty(const char *str) { - return str == NULL || str[0] == 0; + return str == nullptr || str[0] == 0; } static bool IsEmpty(const WCHAR *str) { - return str == NULL || str[0] == 0; + return str == nullptr || str[0] == 0; } -#define DUP(_X_) ( IsEmpty(_X_) ? NULL : mir_wstrdup(_X_)) +#define DUP(_X_) ( IsEmpty(_X_) ? nullptr : mir_wstrdup(_X_)) #define DUPD(_X_, _DEF_) ( IsEmpty(_X_) ? mir_wstrdup(_DEF_) : mir_wstrdup(_X_)) -#define U2T(_X_) ( IsEmpty(_X_) ? NULL : mir_wstrdup(_X_)) +#define U2T(_X_) ( IsEmpty(_X_) ? nullptr : mir_wstrdup(_X_)) #define U2TD(_X_, _DEF_) ( IsEmpty(_X_) ? mir_wstrdup(_DEF_) : mir_wstrdup(_X_)) -#define UNKNOWN(_X_) ( _X_ == NULL || _X_[0] == '\0' ? opts.unknown : _X_ ) +#define UNKNOWN(_X_) ( _X_ == nullptr || _X_[0] == '\0' ? opts.unknown : _X_ ) void InitServices(); -- cgit v1.2.3