qt,cpp: Consistently use nullptr and override
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 3 Dec 2018 11:20:33 +0000 (12:20 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 3 Dec 2018 11:25:00 +0000 (12:25 +0100)
commit1d31420650bfa7ca1d1503cc7431b3360e86022c
tree3155599aae033d00696c12c55459ecbe1b92b598
parent649b19688132dd315e361c0f5b63ba6d8f45996d
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.
56 files changed:
lang/cpp/src/Makefile.am
lang/cpp/src/callbacks.cpp
lang/cpp/src/configuration.cpp
lang/cpp/src/configuration.h
lang/cpp/src/context.cpp
lang/cpp/src/context.h
lang/cpp/src/context_p.h
lang/cpp/src/context_vanilla.cpp
lang/cpp/src/data.cpp
lang/cpp/src/data_p.h
lang/cpp/src/decryptionresult.cpp
lang/cpp/src/defaultassuantransaction.h
lang/cpp/src/editinteractor.cpp
lang/cpp/src/encryptionresult.cpp
lang/cpp/src/engineinfo.cpp
lang/cpp/src/eventloopinteractor.cpp
lang/cpp/src/global.h
lang/cpp/src/gpgadduserideditinteractor.cpp
lang/cpp/src/gpgadduserideditinteractor.h
lang/cpp/src/gpgagentgetinfoassuantransaction.h
lang/cpp/src/gpggencardkeyinteractor.cpp
lang/cpp/src/gpggencardkeyinteractor.h
lang/cpp/src/gpgsetexpirytimeeditinteractor.cpp
lang/cpp/src/gpgsetexpirytimeeditinteractor.h
lang/cpp/src/gpgsetownertrusteditinteractor.cpp
lang/cpp/src/gpgsetownertrusteditinteractor.h
lang/cpp/src/gpgsignkeyeditinteractor.cpp
lang/cpp/src/gpgsignkeyeditinteractor.h
lang/cpp/src/importresult.cpp
lang/cpp/src/key.cpp
lang/cpp/src/keygenerationresult.cpp
lang/cpp/src/scdgetinfoassuantransaction.h
lang/cpp/src/signingresult.cpp
lang/cpp/src/trustitem.cpp
lang/cpp/src/trustitem.h
lang/cpp/src/verificationresult.cpp
lang/cpp/src/vfsmountresult.cpp
lang/qt/src/Makefile.am
lang/qt/src/cryptoconfig.h
lang/qt/src/dataprovider.h
lang/qt/src/dn.cpp
lang/qt/src/multideletejob.cpp
lang/qt/src/protocol_p.h
lang/qt/src/qgpgmebackend.cpp
lang/qt/src/qgpgmedecryptjob.cpp
lang/qt/src/qgpgmedecryptverifyjob.cpp
lang/qt/src/qgpgmeencryptjob.cpp
lang/qt/src/qgpgmekeylistjob.cpp
lang/qt/src/qgpgmelistallkeysjob.cpp
lang/qt/src/qgpgmerefreshkeysjob.cpp
lang/qt/src/qgpgmesecretkeyexportjob.cpp
lang/qt/src/qgpgmesignencryptjob.cpp
lang/qt/src/qgpgmesignjob.cpp
lang/qt/src/qgpgmeverifyopaquejob.cpp
lang/qt/src/threadedjobmixin.cpp
lang/qt/src/threadedjobmixin.h