mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 20:58:07 -06:00
Improve coding style
This commit is contained in:
@@ -60,7 +60,8 @@ ReverseResolution::~ReverseResolution()
|
||||
void ReverseResolution::resolve(const QHostAddress &ip)
|
||||
{
|
||||
const QString *hostname = m_cache.object(ip);
|
||||
if (hostname) {
|
||||
if (hostname)
|
||||
{
|
||||
emit ipResolved(ip, *hostname);
|
||||
return;
|
||||
}
|
||||
@@ -74,7 +75,8 @@ void ReverseResolution::hostResolved(const QHostInfo &host)
|
||||
{
|
||||
const QHostAddress ip = m_lookups.take(host.lookupId());
|
||||
|
||||
if (host.error() != QHostInfo::NoError) {
|
||||
if (host.error() != QHostInfo::NoError)
|
||||
{
|
||||
emit ipResolved(ip, {});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user