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/defaultassuantransaction.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lang/cpp/src/defaultassuantransaction.h') diff --git a/lang/cpp/src/defaultassuantransaction.h b/lang/cpp/src/defaultassuantransaction.h index f294ffe2..5462f5f2 100644 --- a/lang/cpp/src/defaultassuantransaction.h +++ b/lang/cpp/src/defaultassuantransaction.h @@ -53,9 +53,9 @@ public: } private: - /* reimp */ Error data(const char *data, size_t datalen); - /* reimp */ Data inquire(const char *name, const char *args, Error &err); - /* reimp */ Error status(const char *status, const char *args); + Error data(const char *data, size_t datalen) override; + Data inquire(const char *name, const char *args, Error &err) override; + Error status(const char *status, const char *args) override; private: std::vector< std::pair > m_status; -- cgit v1.2.3