[Bug 121003] Silly code checks for if (interfaceName) instead of if (instanceName)

r=bzbarsky sr=brendan@mozilla.org a=brendan@mozilla.org
This commit is contained in:
timeless%mac.com 2002-01-20 23:15:31 +00:00
parent e24c04e22a
commit 518e4ed3ef

View File

@ -533,7 +533,7 @@ void UpdateUI(nsIWebBrowserChrome *aChrome)
PRBool canPaste = PR_FALSE;
nsCOMPtr<nsIClipboardCommands> clipCmds = do_GetInterface(webBrowser);
if (nsIClipboardCommands)
if (clipCmds)
{
clipCmds->CanCutSelection(&canCutSelection);
clipCmds->CanCopySelection(&canCopySelection);