clang-tidy: use nullptr

Signed-off-by: Rosen Penev <rosenp@gmail.com>
main
Rosen Penev 3 years ago
parent 49bf7e1387
commit ae66ecec0d

@ -1547,7 +1547,7 @@ TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
//! Function to create and initialize a new simple binary array entry //! Function to create and initialize a new simple binary array entry
template <const ArrayCfg* arrayCfg> template <const ArrayCfg* arrayCfg>
TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) { TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
return TiffComponent::UniquePtr(new TiffBinaryArray(tag, group, arrayCfg, 0, 0)); return TiffComponent::UniquePtr(new TiffBinaryArray(tag, group, arrayCfg, nullptr, 0));
} }
//! Function to create and initialize a new complex binary array entry //! Function to create and initialize a new complex binary array entry

@ -68,7 +68,7 @@ class XMLValidator {
private: private:
// Private constructor, because this class is only constructed by // Private constructor, because this class is only constructed by
// the (static) check method. // the (static) check method.
XMLValidator() : parser_(XML_ParserCreateNS(0, '@')) { XMLValidator() : parser_(XML_ParserCreateNS(nullptr, '@')) {
if (!parser_) { if (!parser_) {
throw Error(ErrorCode::kerXMPToolkitError, "Could not create expat parser"); throw Error(ErrorCode::kerXMPToolkitError, "Could not create expat parser");
} }

Loading…
Cancel
Save