return wxToolkitInfo by reference and not by pointer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -293,12 +293,12 @@ int wxGetOsVersion(int *verMaj, int *verMin)
|
||||
if ( ! traits )
|
||||
traits = &traitsConsole;
|
||||
|
||||
wxToolkitInfo *info = traits->GetToolkitInfo();
|
||||
wxToolkitInfo& info = traits->GetToolkitInfo();
|
||||
if ( verMaj )
|
||||
*verMaj = info->versionMajor;
|
||||
*verMaj = info.versionMajor;
|
||||
if ( verMin )
|
||||
*verMin = info->versionMinor;
|
||||
return info->os;
|
||||
*verMin = info.versionMinor;
|
||||
return info.os;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user