Skip to content

Commit ae66ece

Browse files
committed
clang-tidy: use nullptr
Signed-off-by: Rosen Penev <[email protected]>
1 parent 49bf7e1 commit ae66ece

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tiffcomposite_int.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
15471547
//! Function to create and initialize a new simple binary array entry
15481548
template <const ArrayCfg* arrayCfg>
15491549
TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
1550-
return TiffComponent::UniquePtr(new TiffBinaryArray(tag, group, arrayCfg, 0, 0));
1550+
return TiffComponent::UniquePtr(new TiffBinaryArray(tag, group, arrayCfg, nullptr, 0));
15511551
}
15521552

15531553
//! Function to create and initialize a new complex binary array entry

src/xmp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class XMLValidator {
6868
private:
6969
// Private constructor, because this class is only constructed by
7070
// the (static) check method.
71-
XMLValidator() : parser_(XML_ParserCreateNS(0, '@')) {
71+
XMLValidator() : parser_(XML_ParserCreateNS(nullptr, '@')) {
7272
if (!parser_) {
7373
throw Error(ErrorCode::kerXMPToolkitError, "Could not create expat parser");
7474
}

0 commit comments

Comments
 (0)