Permalink
Browse files

Do not use outdated built-in object method syntax

  • Loading branch information...
1 parent 6433341 commit 5dd4810f1ff136614c0b850d64d9baa82049e211 @fincs committed Dec 6, 2012
Showing with 7 additions and 7 deletions.
  1. +4 −4 Ahk2Exe.ahk
  2. +1 −1 IconChanger.ahk
  3. +2 −2 ScriptParser.ahk
View
@@ -128,7 +128,7 @@ Loop, %A_ScriptDir%\*.bin
if n = AutoHotkeySC
continue
FileGetVersion, v, %A_LoopFileFullPath%
- BinFiles._Insert(n ".bin")
+ BinFiles.Insert(n ".bin")
BinNames .= "|v" v " " n
}
return
@@ -208,13 +208,13 @@ Loop, %0%
{
if %A_Index% = /NoDecompile
Util_Error("Error: /NoDecompile is not supported.")
- else p._Insert(%A_Index%)
+ else p.Insert(%A_Index%)
}
-if Mod(p._MaxIndex(), 2)
+if Mod(p.MaxIndex(), 2)
goto BadParams
-Loop, % p._MaxIndex() // 2
+Loop, % p.MaxIndex() // 2
{
p1 := p[2*(A_Index-1)+1]
p2 := p[2*(A_Index-1)+2]
View
@@ -25,7 +25,7 @@ ReplaceAhkIcon(re, IcoFile, ExeFile)
ige := &rsrcIconGroup + 6
; Delete all the images
- Loop, % ids._MaxIndex()
+ Loop, % ids.MaxIndex()
DllCall("UpdateResource", "ptr", re, "ptr", 3, "ptr", ids[A_Index], "ushort", 0x409, "ptr", 0, "uint", 0, "uint")
Loop, %wCount%
View
@@ -84,7 +84,7 @@ PreprocessScript(ByRef ScriptText, AhkScript, ExtraFiles, FileList="", FirstScri
if(IsIncludeAgain || !AlreadyIncluded)
{
if !AlreadyIncluded
- FileList._Insert(IncludeFile)
+ FileList.Insert(IncludeFile)
PreprocessScript(ScriptText, IncludeFile, ExtraFiles, FileList, FirstScriptDir, Options, IgnoreErrors)
}
}else if !contSection && RegExMatch(tline, "i)^FileInstall[ \t]*[, \t][ \t]*([^,]+?)[ \t]*,", o) ; TODO: implement `, detection
@@ -95,7 +95,7 @@ PreprocessScript(ByRef ScriptText, AhkScript, ExtraFiles, FileList="", FirstScri
StringReplace, o1, o1, %_%`%, `%, All
StringReplace, o1, o1, %_%`,, `,, All
StringReplace, o1, o1, %_%%_%,, %_%,, All
- ExtraFiles._Insert(o1)
+ ExtraFiles.Insert(o1)
ScriptText .= tline "`n"
}else if !contSection && RegExMatch(tline, "i)^#CommentFlag\s+(.+)$", o)
Options.comm := o1, ScriptText .= tline "`n"

0 comments on commit 5dd4810

Please sign in to comment.