diff options
author | Alexander Kurtakov | 2017-09-27 07:04:14 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2017-09-27 07:05:09 +0000 |
commit | 5b8fa75d1f7bd7eb02164c4992685338c6ecbba4 (patch) | |
tree | 4bc9e70b68c730f6767003fe5f4d093cc222f171 /bundles/org.eclipse.swt/Eclipse SWT Program | |
parent | 47ed256369174cc1874b1b50f12e79d3168b22c9 (diff) | |
download | eclipse.platform.swt-5b8fa75d1f7bd7eb02164c4992685338c6ecbba4.tar.gz eclipse.platform.swt-5b8fa75d1f7bd7eb02164c4992685338c6ecbba4.tar.xz eclipse.platform.swt-5b8fa75d1f7bd7eb02164c4992685338c6ecbba4.zip |
Bug 525255 - Enable indirect static usage warnings
Enable the warning and cover gtk port.
Change-Id: I4cf0318d7aafa92bce24f832875a0a891fa079db
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Program')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java b/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java index 795d063ea6..2273f0bd19 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2016 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 @@ -160,7 +160,7 @@ public ImageData getImageData() { int width = OS.gdk_pixbuf_get_width(pixbuf); boolean hasAlpha = OS.gdk_pixbuf_get_has_alpha(pixbuf); byte[] srcData = new byte[stride * height]; - OS.memmove(srcData, pixels, srcData.length); + C.memmove(srcData, pixels, srcData.length); OS.g_object_unref(pixbuf); if (hasAlpha) { PaletteData palette = new PaletteData(0xFF000000, 0xFF0000, 0xFF00); @@ -270,19 +270,19 @@ static Program gio_getProgram (Display display, long /*int*/ application) { byte[] buffer; long /*int*/ applicationName = OS.g_app_info_get_name (application); if (applicationName != 0) { - length = OS.strlen (applicationName); + length = C.strlen (applicationName); if (length > 0) { buffer = new byte [length]; - OS.memmove (buffer, applicationName, length); + C.memmove (buffer, applicationName, length); program.name = new String (Converter.mbcsToWcs (buffer)); } } long /*int*/ applicationCommand = OS.g_app_info_get_executable (application); if (applicationCommand != 0) { - length = OS.strlen (applicationCommand); + length = C.strlen (applicationCommand); if (length > 0) { buffer = new byte [length]; - OS.memmove (buffer, applicationCommand, length); + C.memmove (buffer, applicationCommand, length); program.command = new String (Converter.mbcsToWcs (buffer)); } } @@ -291,10 +291,10 @@ static Program gio_getProgram (Display display, long /*int*/ application) { if (icon != 0) { long /*int*/ icon_name = OS.g_icon_to_string(icon); if (icon_name != 0) { - length = OS.strlen(icon_name); + length = C.strlen(icon_name); if (length > 0) { buffer = new byte[length]; - OS.memmove(buffer, icon_name, length); + C.memmove(buffer, icon_name, length); program.iconPath = new String(Converter.mbcsToWcs(buffer)); } OS.g_free(icon_name); |