Bug 1171361 - Fix -Wunreachable-code-break warnings in shell/nsMacShellService.cpp. r=mak

This commit is contained in:
Chris Peterson 2015-06-03 23:13:07 -07:00
parent b609bbf3ce
commit b541fec333

View File

@ -355,8 +355,7 @@ nsMacShellService::OpenApplication(int32_t aApplication)
if (!exists)
return NS_ERROR_FILE_NOT_FOUND;
return lf->Launch();
}
break;
}
case nsIMacShellService::APPLICATION_DESKTOP:
{
nsCOMPtr<nsIFile> lf;
@ -367,8 +366,7 @@ nsMacShellService::OpenApplication(int32_t aApplication)
if (!exists)
return NS_ERROR_FILE_NOT_FOUND;
return lf->Launch();
}
break;
}
}
if (appURL && err == noErr) {