X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8eaaeb23796c69ea0f67cbd48fc5f667d9823d0..1978421a6d8b81c1f8a961da4b8ddf544fec7b1b:/src/gtk/utilsgtk.cpp diff --git a/src/gtk/utilsgtk.cpp b/src/gtk/utilsgtk.cpp index 1e0d4dccc1..69f73141b6 100644 --- a/src/gtk/utilsgtk.cpp +++ b/src/gtk/utilsgtk.cpp @@ -7,6 +7,9 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + #include "wx/utils.h" #include "wx/string.h" @@ -122,7 +125,7 @@ int wxDisplayDepth() return gdk_window_get_visual( wxGetRootWindow()->window )->depth; } -wxToolkitInfo *wxGUIAppTraits::GetToolkitInfo() +wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo() { static wxToolkitInfo info; #ifdef __WXGTK20__ @@ -138,7 +141,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)