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/cpp/src/configuration.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lang/cpp/src/configuration.h') diff --git a/lang/cpp/src/configuration.h b/lang/cpp/src/configuration.h index 6993b6dd..2e577156 100644 --- a/lang/cpp/src/configuration.h +++ b/lang/cpp/src/configuration.h @@ -145,7 +145,7 @@ private: class GPGMEPP_EXPORT Option { public: - Option() : comp(), opt(0) {} + Option() : comp(), opt(nullptr) {} Option(const shared_gpgme_conf_comp_t &gpgme_comp, gpgme_conf_opt_t gpgme_opt) : comp(gpgme_comp), opt(gpgme_opt) {} @@ -228,7 +228,7 @@ class GPGMEPP_EXPORT Argument friend class ::GpgME::Configuration::Option; Argument(const shared_gpgme_conf_comp_t &comp, gpgme_conf_opt_t opt, gpgme_conf_arg_t arg, bool owns); public: - Argument() : comp(), opt(0), arg(0) {} + Argument() : comp(), opt(nullptr), arg(nullptr) {} //Argument( const shared_gpgme_conf_comp_t & comp, gpgme_conf_opt_t opt, gpgme_conf_arg_t arg ); Argument(const Argument &other); ~Argument(); -- cgit v1.2.3