Move wasMoved out of =destroy

This commit is contained in:
Clyybber 2020-07-08 20:48:17 +02:00 • committed by Andreas Rumpf
commit 4a1128d16c
5 changed files with 9 additions and 19 deletions

View file

@ -28,7 +28,6 @@ when defined(nimv2):
proc `=destroy`(a: var WideCStringObj) =
if a.data != nil:
deallocShared(a.data)
a.data = nil
proc `=`(a: var WideCStringObj; b: WideCStringObj) {.error.}