mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 19:20:13 +00:00
removed direct access to nsString members
This commit is contained in:
parent
43a65f0fca
commit
bb002efdaa
@ -481,7 +481,7 @@ void nsXPInstallManager::LoadDialogWithNames(nsIDialogParamBlock* ioParamBlock)
|
||||
offset = URL.RFind("/");
|
||||
if (offset != -1)
|
||||
{
|
||||
URL.Cut(offset + 1, URL.mLength - 1);
|
||||
URL.Cut(offset + 1, URL.Length() - 1);
|
||||
ioParamBlock->SetString(paramIndex, URL.ToNewUnicode());
|
||||
}
|
||||
paramIndex++;
|
||||
@ -498,7 +498,7 @@ void nsXPInstallManager::LoadDialogWithNames(nsIDialogParamBlock* ioParamBlock)
|
||||
moduleName.Cut(0, offset + 1);
|
||||
ioParamBlock->SetString(paramIndex, moduleName.ToNewUnicode());
|
||||
paramIndex++;
|
||||
URL.Cut(offset + 1, URL.mLength - 1);
|
||||
URL.Cut(offset + 1, URL.Length() - 1);
|
||||
ioParamBlock->SetString(paramIndex, URL.ToNewUnicode());
|
||||
}
|
||||
paramIndex++;
|
||||
|
Loading…
Reference in New Issue
Block a user