Bug 660535 Remove useless use of PromiseFlatCString r=cjones

This commit is contained in:
Neil Rashbrook 2011-06-09 21:15:10 +01:00
Родитель 60fa1cdb62
Коммит 10dec1a5aa
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -383,7 +383,7 @@ GeckoChildProcessHost::PerformAsyncLaunch(std::vector<std::string> aExtraOpts, b
// or mChildCounter touched by any other thread, so this is safe. // or mChildCounter touched by any other thread, so this is safe.
static char* restoreOrigLogName = 0; static char* restoreOrigLogName = 0;
if (!restoreOrigLogName) if (!restoreOrigLogName)
restoreOrigLogName = strdup(PromiseFlatCString(setChildLogName).get()); restoreOrigLogName = strdup(setChildLogName.get());
// Append child-specific postfix to name // Append child-specific postfix to name
setChildLogName.AppendLiteral(".child-"); setChildLogName.AppendLiteral(".child-");
@ -391,7 +391,7 @@ GeckoChildProcessHost::PerformAsyncLaunch(std::vector<std::string> aExtraOpts, b
// Passing temporary to PR_SetEnv is ok here because env gets copied // Passing temporary to PR_SetEnv is ok here because env gets copied
// by exec, etc., to permanent storage in child when process launched. // by exec, etc., to permanent storage in child when process launched.
PR_SetEnv(PromiseFlatCString(setChildLogName).get()); PR_SetEnv(setChildLogName.get());
bool retval = PerformAsyncLaunchInternal(aExtraOpts, arch); bool retval = PerformAsyncLaunchInternal(aExtraOpts, arch);
// Revert to original value // Revert to original value