mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 04:58:00 +00:00
Remove obsolete references to nsImageManager to fix build bustage after imglib1 removal.
This commit is contained in:
parent
2b431343cd
commit
bbb8b219af
@ -23,12 +23,9 @@
|
||||
#include "nsViewerApp.h"
|
||||
#include "nsBrowserWindow.h"
|
||||
#include "nsMotifMenu.h"
|
||||
#include "nsIImageManager.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsGfxCIID.h"
|
||||
|
||||
static NS_DEFINE_IID(kImageManagerCID, NS_IMAGEMANAGER_CID);
|
||||
|
||||
static nsNativeViewerApp* gTheApp;
|
||||
|
||||
nsNativeViewerApp::nsNativeViewerApp()
|
||||
@ -103,25 +100,6 @@ nsNativeBrowserWindow::DispatchMenuItem(PRInt32 aID)
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
nsresult result;
|
||||
// Hack to get il_ss set so it doesn't fail in xpcompat.c
|
||||
nsCOMPtr<nsIImageManager> manager;
|
||||
|
||||
manager = do_GetService(kImageManagerCID, &result);
|
||||
if (NS_FAILED(result)) {
|
||||
/* This is just to provide backwards compatibility, until the ImageManagerImpl
|
||||
can be converted to a service on all platforms. Once, we havedone the conversion
|
||||
on all platforms, we should be removing the call to NS_NewImageManager(...)
|
||||
*/
|
||||
if ((result = NS_NewImageManager(getter_AddRefs(manager))) != NS_OK) {
|
||||
return result;
|
||||
}
|
||||
// WARNING Extra addref to simulate older be
|
||||
nsIImageManager *aManager = manager.get();
|
||||
NS_ADDREF(aManager);
|
||||
|
||||
}
|
||||
|
||||
gTheApp = new nsNativeViewerApp();
|
||||
|
||||
putenv("MOZ_TOOLKIT=motif");
|
||||
|
Loading…
x
Reference in New Issue
Block a user