From 135e945ff0fcea05f3057b686edd84f86b9014d9 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 7 Nov 2019 18:04:28 +0100 Subject: make parsexml compatible with --gc:destructors/newruntime --- lib/pure/parsexml.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pure/parsexml.nim b/lib/pure/parsexml.nim index 16dc29caa..a8e7aaab8 100644 --- a/lib/pure/parsexml.nim +++ b/lib/pure/parsexml.nim @@ -299,7 +299,7 @@ template piRest*(my: XmlParser): string = assert(my.kind == xmlPI) my.b -proc rawData*(my: XmlParser): string {.inline.} = +proc rawData*(my: var XmlParser): string {.inline.} = ## returns the underlying 'data' string by reference. ## This is only used for speed hacks. when defined(gcDestructors): @@ -307,7 +307,7 @@ proc rawData*(my: XmlParser): string {.inline.} = else: shallowCopy(result, my.a) -proc rawData2*(my: XmlParser): string {.inline.} = +proc rawData2*(my: var XmlParser): string {.inline.} = ## returns the underlying second 'data' string by reference. ## This is only used for speed hacks. when defined(gcDestructors): -- cgit 1.4.1-2-gfad0