diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-05-13 19:48:21 +0300 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-05-25 19:50:28 +0300 |
commit | cfc9d0468c224587ca555e570440b3df688b282d (patch) | |
tree | 2d796b92252f15b9681de153c5077280ed728bf0 /src/util.h | |
parent | 84954523c8a663e61cea82a35b883abcdf180082 (diff) |
src: fix MallocedBuffer move assignment operator
PR-URL: https://github.com/nodejs/node/pull/20883
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h index 26654f15a1a..1f43ba3f7b9 100644 --- a/src/util.h +++ b/src/util.h @@ -438,7 +438,7 @@ struct MallocedBuffer { } MallocedBuffer& operator=(MallocedBuffer&& other) { this->~MallocedBuffer(); - return *new(this) MallocedBuffer(other); + return *new(this) MallocedBuffer(std::move(other)); } ~MallocedBuffer() { free(data); |