diff dwt/printing/PrintDialog.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/printing/PrintDialog.d	Wed Aug 27 14:10:03 2008 +0200
+++ b/dwt/printing/PrintDialog.d	Wed Aug 27 14:30:35 2008 +0200
@@ -126,7 +126,7 @@
  */
 public PrinterData open() {
     NSPrintPanel panel = NSPrintPanel.printPanel();
-    NSPrintInfo printInfo =(NSPrintInfo)new NSPrintInfo().alloc();
+    NSPrintInfo printInfo =cast(NSPrintInfo)new NSPrintInfo().alloc();
     printInfo.initWithDictionary(null);
     panel.runModalWithPrintInfo(printInfo);
     printInfo.release();
@@ -139,7 +139,7 @@
 //          if (OS.PMCreatePageFormat(buffer) is OS.noErr) {
 //              int pageFormat = buffer[0];
 //              OS.PMSessionDefaultPageFormat(printSession, pageFormat);
-//              OS.PMSessionSetDestination(printSession, printSettings, (short) (printToFile ? OS.kPMDestinationFile : OS.kPMDestinationPrinter), 0, 0);
+//              OS.PMSessionSetDestination(printSession, printSettings, cast(short) (printToFile ? OS.kPMDestinationFile : OS.kPMDestinationPrinter), 0, 0);
 //              if (scope is PrinterData.PAGE_RANGE) {
 //                  OS.PMSetFirstPage(printSettings, startPage, false);
 //                  OS.PMSetLastPage(printSettings, endPage, false);