Android: fix warning from Java compiler about redundant cast
ConnectivityManager::getDefaultProxy already returns a ProxyInfo object, no need to cast. Change-Id: I808be775cb03d47c7bb1b20122597697f1f977a1 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
parent
81e74cfa26
commit
e770448a8c
@ -58,7 +58,7 @@ class QtNetwork
|
||||
static ProxyInfo getProxyInfo(final Context context)
|
||||
{
|
||||
if (m_proxyInfo == null)
|
||||
m_proxyInfo = (ProxyInfo)getConnectivityManager(context).getDefaultProxy();
|
||||
m_proxyInfo = getConnectivityManager(context).getDefaultProxy();
|
||||
return m_proxyInfo;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user