mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 14:57:52 +00:00
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);
|
||||
|
Loading…
Reference in New Issue
Block a user