diff options
author | Andrey Loskutov | 2017-07-26 11:40:43 +0000 |
---|---|---|
committer | Eric Williams | 2017-07-26 15:09:01 +0000 |
commit | 942848839aa09ec1e546f97e0b03ea8d287c8b89 (patch) | |
tree | df6d80c27b50d87e5c568da5c98a1614dba73887 /bundles/org.eclipse.swt/Eclipse SWT | |
parent | 06ebabcb138760679f584678c7485fb15f183f7f (diff) | |
download | eclipse.platform.swt-942848839aa09ec1e546f97e0b03ea8d287c8b89.tar.gz eclipse.platform.swt-942848839aa09ec1e546f97e0b03ea8d287c8b89.tar.xz eclipse.platform.swt-942848839aa09ec1e546f97e0b03ea8d287c8b89.zip |
Bug 477950 - avoid unneeded new GdkRGBA() creation
Change-Id: I5547f58919cabc50fb777aee477609be18f16bfe
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java index a36df6ec1f..a6911218e8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java @@ -4994,7 +4994,7 @@ void setForegroundGdkColor (GdkColor color) { void setForegroundGdkRGBA (long /*int*/ handle, GdkRGBA rgba) { assert OS.GTK3 : "GTK3 code was run by GTK2"; if (OS.GTK_VERSION >= OS.VERSION(3, 14, 0)) { - GdkRGBA toSet = new GdkRGBA(); + GdkRGBA toSet; if (rgba != null) { toSet = rgba; } else { |