diff options
| author | 2016-04-30 18:23:42 +0100 | |
|---|---|---|
| committer | 2016-04-30 18:50:44 +0100 | |
| commit | 505d0768f8392e3c4775425dd97f41e1c829ef44 (patch) | |
| tree | 55dfa35f2e180b4186baf00ffbfd2ee38c0f1c18 /src/modules/upnp/igdcontrolpoint.cpp | |
| parent | Update my clang-format to 3.8.0 (diff) | |
| download | KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.gz KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.tar.bz2 KVIrc-505d0768f8392e3c4775425dd97f41e1c829ef44.zip | |
Apply clang-tidy: modernize-use-nullptr
Diffstat (limited to 'src/modules/upnp/igdcontrolpoint.cpp')
| -rw-r--r-- | src/modules/upnp/igdcontrolpoint.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/upnp/igdcontrolpoint.cpp b/src/modules/upnp/igdcontrolpoint.cpp index 686d576ca..0c2adce1e 100644 --- a/src/modules/upnp/igdcontrolpoint.cpp +++ b/src/modules/upnp/igdcontrolpoint.cpp @@ -46,7 +46,7 @@ namespace UPnP // The constructor IgdControlPoint::IgdControlPoint(const QString & hostname, int port, const QString & rootUrl) - : QObject(), m_bGatewayAvailable(false), m_iIgdPort(0), m_pRootService(0), m_pWanConnectionService(0) + : QObject(), m_bGatewayAvailable(false), m_iIgdPort(0), m_pRootService(nullptr), m_pWanConnectionService(nullptr) { qDebug() << "CREATED UPnP::IgdControlPoint: created control point" << " url='" << hostname << ":" << port << "/" << rootUrl << "'." << endl; @@ -75,7 +75,7 @@ namespace UPnP QString IgdControlPoint::getExternalIpAddress() const { // Do not expose wanConnectionService_; - if(m_pWanConnectionService != 0) + if(m_pWanConnectionService != nullptr) { return m_pWanConnectionService->getExternalIpAddress(); } @@ -145,7 +145,7 @@ namespace UPnP void IgdControlPoint::addPortMapping(const QString & protocol, const QString & remoteHost, int externalPort, const QString & internalClient, int internalPort, const QString & description, bool enabled, int leaseDuration) { // Do not expose wanConnectionService_; - if(m_pWanConnectionService != 0) + if(m_pWanConnectionService != nullptr) { m_pWanConnectionService->addPortMapping(protocol, remoteHost, externalPort, internalClient, internalPort, description, enabled, leaseDuration); } @@ -155,7 +155,7 @@ namespace UPnP void IgdControlPoint::deletePortMapping(const QString & protocol, const QString & remoteHost, int externalPort) { // Do not expose wanConnectionService_; - if(m_pWanConnectionService != 0) + if(m_pWanConnectionService != nullptr) { m_pWanConnectionService->deletePortMapping(protocol, remoteHost, externalPort); } |
