зеркало из https://github.com/mozilla/gecko-dev.git
more string fun
This commit is contained in:
Родитель
2eb6c0c4e0
Коммит
730b45710f
|
@ -1416,7 +1416,7 @@ nsPrefMigration::CopyAndRenameNewsrcFiles(nsIFileSpec * newPathSpec)
|
|||
{
|
||||
nsFileSpec fileOrDirName = (nsFileSpec&)dir; //set first file or dir to a nsFileSpec
|
||||
folderName = fileOrDirName.GetLeafName(); //get the filename without the full path
|
||||
fileOrDirNameStr = folderName;
|
||||
fileOrDirNameStr.AssignWithConversion(folderName);
|
||||
|
||||
if (nsStringStartsWith(fileOrDirNameStr, NEWSRC_PREFIX_IN_4x) || nsStringStartsWith(fileOrDirNameStr, SNEWSRC_PREFIX_IN_4x)) {
|
||||
#ifdef DEBUG_seth
|
||||
|
|
|
@ -1119,7 +1119,7 @@ nsProfileAccess::Get4xProfileInfo(const char *registryName)
|
|||
}
|
||||
|
||||
PRBool exists = PR_FALSE;;
|
||||
exists = ProfileExists(nsAutoString(unixProfileName).GetUnicode());
|
||||
exists = ProfileExists(NS_ConvertASCIItoUCS2(unixProfileName).GetUnicode());
|
||||
if (exists)
|
||||
{
|
||||
return NS_OK;
|
||||
|
@ -1149,9 +1149,9 @@ nsProfileAccess::Get4xProfileInfo(const char *registryName)
|
|||
|
||||
profileItem->updateProfileEntry = PR_TRUE;
|
||||
|
||||
profileItem->profileName = nsAutoString(nsUnescape(unixProfileName)).ToNewUnicode();
|
||||
profileItem->profileLocation = nsAutoString(profileLocation).ToNewUnicode();
|
||||
profileItem->isMigrated = nsAutoString(REGISTRY_NO_STRING).ToNewUnicode();
|
||||
profileItem->profileName = NS_ConvertASCIItoUCS2(nsUnescape(unixProfileName)).ToNewUnicode();
|
||||
profileItem->profileLocation = NS_ConvertASCIItoUCS2(profileLocation).ToNewUnicode();
|
||||
profileItem->isMigrated = NS_ConvertASCIItoUCS2(REGISTRY_NO_STRING).ToNewUnicode();
|
||||
|
||||
if (!m4xProfiles)
|
||||
m4xProfiles = new nsVoidArray();
|
||||
|
|
Загрузка…
Ссылка в новой задаче