diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/printing/Printer.d @ 39:0ecb2b338560

further work on phobosification
author Frank Benoit <benoit@tionex.de>
date Wed, 25 Mar 2009 13:20:43 +0100
parents 2e09b0e6857a
children
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/printing/Printer.d	Wed Mar 25 11:18:25 2009 +0100
+++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/printing/Printer.d	Wed Mar 25 13:20:43 2009 +0100
@@ -107,7 +107,7 @@
                 System.arraycopy(deviceNames, 0, newNames, 0, deviceNames.length);
                 deviceNames = newNames;
             }
-            deviceNames[nameCount] = buf[index .. i ].idup;
+            deviceNames[nameCount] = buf[index .. i ]._idup();
             nameCount++;
             index = i + 1;
         }
@@ -120,7 +120,7 @@
             int commaIndex = 0;
             while (buf[commaIndex] !is ',' && commaIndex < length) commaIndex++;
             if (commaIndex < length) {
-                driver = buf[0 .. commaIndex].idup;
+                driver = buf[0 .. commaIndex]._idup();
             }
         }
         printerList[p] = new PrinterData(driver, device);
@@ -147,14 +147,14 @@
     int commaIndex = 0;
     while(buf[commaIndex] !is ',' && commaIndex < length) commaIndex++;
     if (commaIndex < length) {
-        deviceName = buf[0 .. commaIndex].idup;
+        deviceName = buf[0 .. commaIndex]._idup();
     }
     String driver = ""; //$NON-NLS-1$
     if (OS.GetProfileString(TCHARsToStr(profile), deviceName, null, buf, length) > 0) {
         commaIndex = 0;
         while (buf[commaIndex] !is ',' && commaIndex < length) commaIndex++;
         if (commaIndex < length) {
-            driver = buf[0 .. commaIndex].idup;
+            driver = buf[0 .. commaIndex]._idup();
         }
     }
     return new PrinterData(driver, deviceName);