зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1497831 - Followup as point as out by froydnj, r=me
--HG-- extra : rebase_source : a19ab1375e2316e38b9e5ecd6801739838e3d01b
This commit is contained in:
Родитель
15dd23bc5d
Коммит
805f4cc3c8
|
@ -427,7 +427,7 @@ nsClipboard::HasDataMatchingFlavors(const char** aFlavorList, uint32_t aLength,
|
|||
nsresult rv = mTransferable->FlavorsTransferableCanImport(flavors);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
for (uint32_t j = 0; j < flavors.Length(); j++) {
|
||||
nsCString transferableFlavorStr = flavors[j];
|
||||
const nsCString& transferableFlavorStr = flavors[j];
|
||||
|
||||
for (uint32_t k = 0; k < aLength; k++) {
|
||||
if (transferableFlavorStr.Equals(aFlavorList[k])) {
|
||||
|
|
|
@ -582,7 +582,7 @@ nsDragService::IsDataFlavorSupported(const char *aDataFlavor, bool *_retval)
|
|||
continue;
|
||||
|
||||
for (uint32_t j = 0; j < flavors.Length(); j++) {
|
||||
if (dataFlavor.Equals(flavors[i])) {
|
||||
if (dataFlavor.Equals(flavors[j])) {
|
||||
*_retval = true;
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче