From ae66ecec0d0243b7b772b5477601e68a063b208f Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 9 Apr 2022 13:19:13 -0700 Subject: [PATCH] clang-tidy: use nullptr Signed-off-by: Rosen Penev --- src/tiffcomposite_int.hpp | 2 +- src/xmp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tiffcomposite_int.hpp b/src/tiffcomposite_int.hpp index e4731d11..b33ba33e 100644 --- a/src/tiffcomposite_int.hpp +++ b/src/tiffcomposite_int.hpp @@ -1547,7 +1547,7 @@ TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) { //! Function to create and initialize a new simple binary array entry template 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 diff --git a/src/xmp.cpp b/src/xmp.cpp index 5355f578..cb4f422d 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -68,7 +68,7 @@ class XMLValidator { private: // Private constructor, because this class is only constructed by // the (static) check method. - XMLValidator() : parser_(XML_ParserCreateNS(0, '@')) { + XMLValidator() : parser_(XML_ParserCreateNS(nullptr, '@')) { if (!parser_) { throw Error(ErrorCode::kerXMPToolkitError, "Could not create expat parser"); }