Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-09-27 07:50:23 +0000
committerAlexander Kurtakov2017-09-27 07:50:23 +0000
commitef1c9ece12b56540eb7357cef11ed3c8030db167 (patch)
tree7cf55060ffccb4659aa03918f0777dfc8ccd3017 /bundles/org.eclipse.swt/Eclipse SWT Printing
parentaab6e35f45638c8e78f68696d4e0d73927332d5d (diff)
downloadeclipse.platform.swt-ef1c9ece12b56540eb7357cef11ed3c8030db167.tar.gz
eclipse.platform.swt-ef1c9ece12b56540eb7357cef11ed3c8030db167.tar.xz
eclipse.platform.swt-ef1c9ece12b56540eb7357cef11ed3c8030db167.zip
Bug 525255 - Enable indirect static usage warningsI20170927-0420
Cover cocoa. Change-Id: Ibf01d0735cc001978dcd27d1af4d2dba8b277327 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Printing')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/PrintDialog.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/PrintDialog.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/PrintDialog.java
index 8e0a994b86..583151bb99 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/PrintDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/PrintDialog.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2017 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,10 +11,9 @@
package org.eclipse.swt.printing;
import org.eclipse.swt.*;
-import org.eclipse.swt.printing.PrinterData;
-import org.eclipse.swt.widgets.*;
import org.eclipse.swt.internal.*;
import org.eclipse.swt.internal.cocoa.*;
+import org.eclipse.swt.widgets.*;
/**
* Instances of this class allow the user to select
@@ -244,7 +243,7 @@ public PrinterData open() {
: PrinterData.DUPLEX_NONE;
NSData nsData = NSKeyedArchiver.archivedDataWithRootObject(printInfo);
data.otherData = new byte[(int)/*64*/nsData.length()];
- OS.memmove(data.otherData, nsData.bytes(), data.otherData.length);
+ C.memmove(data.otherData, nsData.bytes(), data.otherData.length);
printerData = data;
}
printInfo.release();

Back to the top