diff options
Diffstat (limited to 'shell/source/backends/wininetbe/wininetbackend.cxx')
-rw-r--r-- | shell/source/backends/wininetbe/wininetbackend.cxx | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/shell/source/backends/wininetbe/wininetbackend.cxx b/shell/source/backends/wininetbe/wininetbackend.cxx index 1a9f9989986b..42f091fe759a 100644 --- a/shell/source/backends/wininetbe/wininetbackend.cxx +++ b/shell/source/backends/wininetbe/wininetbackend.cxx @@ -119,9 +119,9 @@ WinInetBackend::WinInetBackend() LPINTERNET_PROXY_INFO lpi = π DWORD dwLength = sizeof (INTERNET_PROXY_INFO); BOOL ok = lpfnInternetQueryOption( - NULL, + nullptr, INTERNET_OPTION_PROXY, - (LPVOID)lpi, + lpi, &dwLength ); if (!ok) { @@ -136,12 +136,12 @@ WinInetBackend::WinInetBackend() // alloca is nice because it is fast and we don't // have to free the allocated memory, it will be // automatically done - lpi = reinterpret_cast< LPINTERNET_PROXY_INFO >( + lpi = static_cast< LPINTERNET_PROXY_INFO >( alloca( dwLength ) ); ok = lpfnInternetQueryOption( - NULL, + nullptr, INTERNET_OPTION_PROXY, - (LPVOID)lpi, + lpi, &dwLength ); if (!ok) { @@ -218,13 +218,10 @@ WinInetBackend::WinInetBackend() ProxyEntry aTypeIndepProxy = FindProxyEntry( aProxyList, OUString()); - ProxyEntry aHttpProxy = FindProxyEntry( aProxyList, OUString( - "http" ) ); - ProxyEntry aHttpsProxy = FindProxyEntry( aProxyList, OUString( - "https" ) ); + ProxyEntry aHttpProxy = FindProxyEntry( aProxyList, "http" ); + ProxyEntry aHttpsProxy = FindProxyEntry( aProxyList, "https" ); - ProxyEntry aFtpProxy = FindProxyEntry( aProxyList, OUString( - "ftp" ) ); + ProxyEntry aFtpProxy = FindProxyEntry( aProxyList, "ftp" ); if( aTypeIndepProxy.Server.getLength() ) { |