diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-11-07 18:04:28 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-11-07 18:18:51 +0100 |
commit | 135e945ff0fcea05f3057b686edd84f86b9014d9 (patch) | |
tree | b96cc2277b856f82380dc657389119f81d419448 /lib | |
parent | 76085e8a4523d965ebe739a9b8761ac4899279ed (diff) | |
download | Nim-135e945ff0fcea05f3057b686edd84f86b9014d9.tar.gz |
make parsexml compatible with --gc:destructors/newruntime
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/parsexml.nim | 4 |
1 files 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): |