diff options
author | Jake Petroules <jake.petroules@theqtcompany.com> | 2015-11-11 19:23:37 -0800 |
---|---|---|
committer | Jake Petroules <jake.petroules@theqtcompany.com> | 2015-11-27 10:26:08 +0000 |
commit | a08c71b90d7dc88fd4175bb64797a43254cc14d7 (patch) | |
tree | 667f75eb37e5e6f21f5295809ec8ee4482c1641e /share/qbs/imports/qbs/DarwinTools | |
parent | 8035c6a5babd0e41e54dc7bce06842978a34cbd9 (diff) |
Move global auxiliary functions into a new Utilities extension.
Change-Id: If0f12b9d28b83080f4435d91b55d70d5cff5d42e
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'share/qbs/imports/qbs/DarwinTools')
-rw-r--r-- | share/qbs/imports/qbs/DarwinTools/darwin-tools.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/qbs/imports/qbs/DarwinTools/darwin-tools.js b/share/qbs/imports/qbs/DarwinTools/darwin-tools.js index 056b54af6..670ca8181 100644 --- a/share/qbs/imports/qbs/DarwinTools/darwin-tools.js +++ b/share/qbs/imports/qbs/DarwinTools/darwin-tools.js @@ -29,6 +29,7 @@ ****************************************************************************/ var FileInfo = loadExtension("qbs.FileInfo"); +var Utilities = loadExtension("qbs.Utilities"); /** * Returns the numeric identifier corresponding to an Apple device name @@ -193,7 +194,7 @@ function expandPlistEnvironmentVariables(obj, env, warn) { if (varFormatter !== undefined) varFormatter = varFormatter.toLowerCase(); if (varFormatter === "rfc1034identifier") - varValue = qbs.rfc1034Identifier(varValue); + varValue = Utilities.rfc1034Identifier(varValue); value = value.slice(0, i) + varValue + value.slice(j + repl.syntax.close.length); // avoid recursive substitutions to avoid potentially infinite loops i += varValue.length; |