Deprecate TaintedString (#15423)
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
This commit is contained in:
parent
7b632f9ccb
commit
78a99587a4
36 changed files with 184 additions and 229 deletions
|
|
@ -98,7 +98,7 @@ proc unused =
|
|||
iterator lineIter2*(filename: string): string {.closure.} =
|
||||
var f = open(filename, bufSize=8000)
|
||||
defer: close(f) # <-- commenting defer "solves" the problem
|
||||
var res = TaintedString(newStringOfCap(80))
|
||||
var res = newStringOfCap(80)
|
||||
while f.readLine(res): yield res
|
||||
|
||||
proc unusedB =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue