Add another ifdef to fix build

git-svn-id: svn://10.0.0.236/trunk@21874 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
akkana%netscape.com
1999-02-25 06:13:48 +00:00
parent 98de55ae05
commit 69c736c565

View File

@@ -191,10 +191,14 @@ nsresult nsAppShell::DispatchNativeEvent(void * aEvent)
NS_METHOD
nsAppShell::GetSelectionMgr(nsISelectionMgr** aSelectionMgr)
{
#ifdef USE_SELECTION_MGR
*aSelectionMgr = mSelectionMgr;
NS_IF_ADDREF(mSelectionMgr);
if (!mSelectionMgr)
return NS_ERROR_NOT_INITIALIZED;
return NS_OK;
#else /* USE_SELECTION_MGR */
return NS_ERROR_NOT_IMPLEMENTED;
#endif /* USE_SELECTION_MGR */
}