diff options
| -rw-r--r-- | zencore/compactbinarypackage.cpp | 10 | ||||
| -rw-r--r-- | zencore/include/zencore/compactbinarypackage.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/zencore/compactbinarypackage.cpp b/zencore/compactbinarypackage.cpp index f7ce371c8..6eaca5fdf 100644 --- a/zencore/compactbinarypackage.cpp +++ b/zencore/compactbinarypackage.cpp @@ -28,7 +28,7 @@ CbAttachment::CbAttachment(const CompositeBuffer& InValue) : Value{std::in_place { if (std::get<BinaryValue>(Value).Buffer.IsNull()) { - Value.emplace<nullptr_t>(); + Value.emplace<std::nullptr_t>(); } } @@ -36,7 +36,7 @@ CbAttachment::CbAttachment(CompositeBuffer&& InValue) : Value{std::in_place_type { if (std::get<BinaryValue>(Value).Buffer.IsNull()) { - Value.emplace<nullptr_t>(); + Value.emplace<std::nullptr_t>(); } } @@ -44,7 +44,7 @@ CbAttachment::CbAttachment(CompositeBuffer&& InValue, const IoHash& Hash) : Valu { if (std::get<BinaryValue>(Value).Buffer.IsNull()) { - Value.emplace<nullptr_t>(); + Value.emplace<std::nullptr_t>(); } } @@ -52,7 +52,7 @@ CbAttachment::CbAttachment(CompressedBuffer&& InValue) : Value(std::in_place_typ { if (std::get<CompressedBuffer>(Value).IsNull()) { - Value.emplace<nullptr_t>(); + Value.emplace<std::nullptr_t>(); } } @@ -238,7 +238,7 @@ CbAttachment::Save(BinaryWriter& Writer) const bool CbAttachment::IsNull() const { - return std::holds_alternative<nullptr_t>(Value); + return std::holds_alternative<std::nullptr_t>(Value); } bool diff --git a/zencore/include/zencore/compactbinarypackage.h b/zencore/include/zencore/compactbinarypackage.h index 3fb85beb3..c3e587f40 100644 --- a/zencore/include/zencore/compactbinarypackage.h +++ b/zencore/include/zencore/compactbinarypackage.h @@ -154,7 +154,7 @@ private: BinaryValue(SharedBuffer&& InBuffer, const IoHash& InHash) : Buffer(std::move(InBuffer)), Hash(InHash) {} }; - std::variant<nullptr_t, CbObjectValue, BinaryValue, CompressedBuffer> Value; + std::variant<std::nullptr_t, CbObjectValue, BinaryValue, CompressedBuffer> Value; }; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |