From 012cd7a5888913ae5efc0762a019ff1fd5e27551 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Mon, 29 Jul 2019 21:28:55 +0200 Subject: Use operators .. and ..= instead of Format where appropriate --- DTTemplateFunctions.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'DTTemplateFunctions.c') diff --git a/DTTemplateFunctions.c b/DTTemplateFunctions.c index 860c9e1..6d8cd7e 100644 --- a/DTTemplateFunctions.c +++ b/DTTemplateFunctions.c @@ -83,7 +83,7 @@ global func Function(arguments, commands) { if(argument == "") { - contentPart = Format("%s%%", contentPart); + contentPart ..= "%"; } else { @@ -125,7 +125,7 @@ global func Function(arguments, commands) } else if(c == 39) // ' { - contentPart = Format("%s\"", contentPart); + contentPart ..= "\""; } else { @@ -172,9 +172,9 @@ global func f(array function, array args) { part = EscapeString(part); } - command = Format("%s%s", command, part); + command ..= part; } - else command = Format("%s%s", command, contentPart); + else command ..= contentPart; } ret = eval(command); } @@ -201,9 +201,9 @@ global func DebugFunc(array function, array args) { part = EscapeString(part); } - command = Format("%s%s", command, part); + command ..= part; } - else command = Format("%s%s", command, contentPart); + else command ..= contentPart; } Log(command); } -- cgit v1.2.3-54-g00ecf