diff dwt/browser/WindowCreator2.d @ 7:e831403a80a9

Add 'cast' to casts
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:30:35 +0200
parents 1a8b3cb347e0
children d8635bb48c7c
line wrap: on
line diff
--- a/dwt/browser/WindowCreator2.d	Wed Aug 27 14:10:03 2008 +0200
+++ b/dwt/browser/WindowCreator2.d	Wed Aug 27 14:30:35 2008 +0200
@@ -56,15 +56,15 @@
         public int /*long*/ method0 (int /*long*/[] args) {return QueryInterface (args[0], args[1]);}
         public int /*long*/ method1 (int /*long*/[] args) {return AddRef ();}
         public int /*long*/ method2 (int /*long*/[] args) {return Release ();}
-        public int /*long*/ method3 (int /*long*/[] args) {return CreateChromeWindow (args[0], (int)/*64*/args[1], args[2]);}
+        public int /*long*/ method3 (int /*long*/[] args) {return CreateChromeWindow (args[0], cast(int)/*64*/args[1], args[2]);}
     };
 
     windowCreator2 = new XPCOMObject (new int[] {2, 0, 0, 3, 6}) {
         public int /*long*/ method0 (int /*long*/[] args) {return QueryInterface (args[0], args[1]);}
         public int /*long*/ method1 (int /*long*/[] args) {return AddRef ();}
         public int /*long*/ method2 (int /*long*/[] args) {return Release ();}
-        public int /*long*/ method3 (int /*long*/[] args) {return CreateChromeWindow (args[0], (int)/*64*/args[1], args[2]);}
-        public int /*long*/ method4 (int /*long*/[] args) {return CreateChromeWindow2 (args[0], (int)/*64*/args[1], (int)/*64*/args[2], args[3], args[4], args[5]);}
+        public int /*long*/ method3 (int /*long*/[] args) {return CreateChromeWindow (args[0], cast(int)/*64*/args[1], args[2]);}
+        public int /*long*/ method4 (int /*long*/[] args) {return CreateChromeWindow2 (args[0], cast(int)/*64*/args[1], cast(int)/*64*/args[2], args[3], args[4], args[5]);}
     };
 }
 
@@ -221,7 +221,7 @@
         }
     }
     if (doit) {
-        Mozilla mozilla = (Mozilla)browser.webBrowser;
+        Mozilla mozilla = cast(Mozilla)browser.webBrowser;
         mozilla.isChild = true;
         int /*long*/ chromePtr = mozilla.webBrowserChrome.getAddress ();
         nsIWebBrowserChrome webBrowserChrome = new nsIWebBrowserChrome (chromePtr);