Fix mixed line breaks in webview sources
This commit is contained in:
@@ -58,16 +58,16 @@ wxVersionInfo wxWebViewFactoryIE::GetVersionInfo()
|
||||
wxRegKey key(wxRegKey::HKLM, "Software\\Microsoft\\Internet Explorer");
|
||||
wxString value;
|
||||
key.QueryValue("Version", value);
|
||||
long major = 0,
|
||||
minor = 0,
|
||||
micro = 0;
|
||||
wxStringTokenizer tk(value, ". ");
|
||||
// Ignore the return value because if the version component is missing
|
||||
// or invalid (i.e. non-numeric), the only thing we can do is to ignore
|
||||
// it anyhow.
|
||||
tk.GetNextToken().ToLong(&major);
|
||||
tk.GetNextToken().ToLong(&minor);
|
||||
tk.GetNextToken().ToLong(µ);
|
||||
long major = 0,
|
||||
minor = 0,
|
||||
micro = 0;
|
||||
wxStringTokenizer tk(value, ". ");
|
||||
// Ignore the return value because if the version component is missing
|
||||
// or invalid (i.e. non-numeric), the only thing we can do is to ignore
|
||||
// it anyhow.
|
||||
tk.GetNextToken().ToLong(&major);
|
||||
tk.GetNextToken().ToLong(&minor);
|
||||
tk.GetNextToken().ToLong(µ);
|
||||
return wxVersionInfo("Internet Explorer", major, minor, micro);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user