X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8eaaeb23796c69ea0f67cbd48fc5f667d9823d0..2512ee4ef28558f2fca6409f9b48a57d2fc3c780:/src/gtk/utilsgtk.cpp diff --git a/src/gtk/utilsgtk.cpp b/src/gtk/utilsgtk.cpp index 1e0d4dccc1..89dfaec185 100644 --- a/src/gtk/utilsgtk.cpp +++ b/src/gtk/utilsgtk.cpp @@ -122,7 +122,7 @@ int wxDisplayDepth() return gdk_window_get_visual( wxGetRootWindow()->window )->depth; } -wxToolkitInfo *wxGUIAppTraits::GetToolkitInfo() +wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo() { static wxToolkitInfo info; #ifdef __WXGTK20__ @@ -138,7 +138,7 @@ wxToolkitInfo *wxGUIAppTraits::GetToolkitInfo() info.versionMajor = GTK_MAJOR_VERSION; info.versionMinor = GTK_MINOR_VERSION; info.os = wxGTK; - return &info; + return info; } wxWindow* wxFindWindowAtPoint(const wxPoint& pt)