mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
committed by
GitHub
parent
4d2015cfed
commit
65930ddf94
@@ -31,6 +31,7 @@
|
||||
#include "requestparser.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <utility>
|
||||
|
||||
#include <QByteArrayView>
|
||||
#include <QDebug>
|
||||
@@ -45,7 +46,7 @@
|
||||
|
||||
using namespace Http;
|
||||
using namespace Utils::ByteArray;
|
||||
using QStringPair = QPair<QString, QString>;
|
||||
using QStringPair = std::pair<QString, QString>;
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
|
||||
#include <QList>
|
||||
#include <QNetworkInterface>
|
||||
#include <QPair>
|
||||
#include <QSslCertificate>
|
||||
#include <QSslKey>
|
||||
#include <QString>
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
#include <utility>
|
||||
|
||||
#include <QtContainerFwd>
|
||||
#include <QHostAddress>
|
||||
@@ -40,7 +41,7 @@ class QString;
|
||||
namespace Utils::Net
|
||||
{
|
||||
// alias for `QHostAddress::parseSubnet()` return type
|
||||
using Subnet = QPair<QHostAddress, int>;
|
||||
using Subnet = std::pair<QHostAddress, int>;
|
||||
|
||||
bool isValidIP(const QString &ip);
|
||||
std::optional<Subnet> parseSubnet(const QString &subnetStr);
|
||||
|
||||
Reference in New Issue
Block a user