From 1d31420650bfa7ca1d1503cc7431b3360e86022c Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Mon, 3 Dec 2018 12:20:33 +0100 Subject: qt,cpp: Consistently use nullptr and override * lang/cpp/src/Makefile.am, lang/qt/src/Makefile.am (AM_CPPFLAGS): Add suggest-override and zero-as-null-pointer-constant warnings. * lang/cpp/src/*, lang/qt/src/*: Consistenly use nullptr and override. -- This was especially important for the headers so that downstream users of GpgME++ or QGpgME do not get flooded by warnings if they have these warnings enabled. It also improves compiler errors/warnings in case of accidental mistakes. --- lang/qt/src/dn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lang/qt/src/dn.cpp') diff --git a/lang/qt/src/dn.cpp b/lang/qt/src/dn.cpp index d122333d..e41d481c 100644 --- a/lang/qt/src/dn.cpp +++ b/lang/qt/src/dn.cpp @@ -256,7 +256,7 @@ parse_dn(const unsigned char *string) break; /* ready */ } - DnPair pair = { 0, 0 }; + DnPair pair = { nullptr, nullptr }; string = parse_dn_part(&pair, string); if (!string) { goto failure; -- cgit v1.2.3