VS 2022 warning fix

This commit is contained in:
Henrik Rydgård 2022-06-12 11:34:14 +02:00
parent ebe2d1b30f
commit 2bb845a0ca

View File

@ -114,10 +114,10 @@ public:
JsonAllocator() : head(nullptr) {};
JsonAllocator(const JsonAllocator &) = delete;
JsonAllocator &operator=(const JsonAllocator &) = delete;
JsonAllocator(JsonAllocator &&x) : head(x.head) {
JsonAllocator(JsonAllocator &&x) noexcept : head(x.head) {
x.head = nullptr;
}
JsonAllocator &operator=(JsonAllocator &&x) {
JsonAllocator &operator=(JsonAllocator &&x) noexcept {
head = x.head;
x.head = nullptr;
return *this;