diff options
| author | Zufu Liu <unknown> | 2020-03-21 07:39:05 +1100 |
|---|---|---|
| committer | Zufu Liu <unknown> | 2020-03-21 07:39:05 +1100 |
| commit | 820fe962369e812beee37ce223ade43dbb2eb575 (patch) | |
| tree | 51559f6027687a1facc5ff78eb8d878b2ab3aa45 | |
| parent | 85de753ec1b1f9f636e8e061505785fd94847a53 (diff) | |
| download | scintilla-mirror-820fe962369e812beee37ce223ade43dbb2eb575.tar.gz | |
Backport: Remove some casts that are not needed.
Backport of changeset 8015:d1071fa7574d.
| -rwxr-xr-x | gtk/ScintillaGTK.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index a295c888c..30c7b4387 100755 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1310,9 +1310,8 @@ void ScintillaGTK::CreateCallTipWindow(PRectangle rc) { G_CALLBACK(ScintillaGTK::PressCT), this); gtk_widget_set_events(widcdrw, GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK); - GtkWidget *top = gtk_widget_get_toplevel(static_cast<GtkWidget *>(wMain.GetID())); - gtk_window_set_transient_for(GTK_WINDOW(static_cast<GtkWidget *>(PWidget(ct.wCallTip))), - GTK_WINDOW(top)); + GtkWidget *top = gtk_widget_get_toplevel(PWidget(wMain)); + gtk_window_set_transient_for(GTK_WINDOW(PWidget(ct.wCallTip)), GTK_WINDOW(top)); } const int width = static_cast<int>(rc.Width()); const int height = static_cast<int>(rc.Height()); |
