summary refs log tree commit diff stats
path: root/compiler/nimrod.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-05-14 01:13:44 +0200
committerAraq <rumpf_a@web.de>2011-05-14 01:13:44 +0200
commit3e9dcc8be5d1286e3647e8f665f456966aa02437 (patch)
tree8bc3b42f28feba6f93c0bd3c386dcb82eabff484 /compiler/nimrod.nim
parent32241aa9fe1a22f388124a6e5db8fb0517f01789 (diff)
downloadNim-3e9dcc8be5d1286e3647e8f665f456966aa02437.tar.gz
deprecated system.copy: use system.substr instead
Diffstat (limited to 'compiler/nimrod.nim')
-rwxr-xr-xcompiler/nimrod.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/nimrod.nim b/compiler/nimrod.nim
index d9580d955..e4a9d8827 100755
--- a/compiler/nimrod.nim
+++ b/compiler/nimrod.nim
@@ -33,8 +33,8 @@ proc ProcessCmdLine(pass: TCmdLinePass, command, filename: var string) =
       # we fix this here
       var bracketLe = strutils.find(p.key, '[')
       if bracketLe >= 0: 
-        var key = copy(p.key, 0, bracketLe - 1)
-        var val = copy(p.key, bracketLe + 1) & ':' & p.val
+        var key = substr(p.key, 0, bracketLe - 1)
+        var val = substr(p.key, bracketLe + 1) & ':' & p.val
         ProcessSwitch(key, val, pass, cmdLineInfo)
       else: 
         ProcessSwitch(p.key, p.val, pass, cmdLineInfo)