size_t len;
environment = GetIniFile (filename, NULL);
len = strlen (environment);
- wxString hostname;
- if ( wxGetHostName(hostname) )
+ wxString hostname = wxGetHostName();
+ if ( !!hostname )
strncat(environment, hostname, 1024 - len);
}
homeDB = XrmGetFileDatabase (environment);
else
{
// Restore old cursor
- if (win->GetCursor()->Ok())
- attrs.cursor = (Cursor) win->GetCursor()->GetXCursor(display);
+ if (win->GetCursor().Ok())
+ attrs.cursor = (Cursor) win->GetCursor().GetXCursor(display);
else
attrs.cursor = None;
}