From 14664e54b1a2dbe9c06f474a0918a262dba04e20 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 25 Jul 2011 19:48:41 +0200 Subject: clean up - QL1S - one stupid kDebug less - codingstyle --- src/websslinfo.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'src/websslinfo.cpp') diff --git a/src/websslinfo.cpp b/src/websslinfo.cpp index 720c2209..d266a8fc 100644 --- a/src/websslinfo.cpp +++ b/src/websslinfo.cpp @@ -113,7 +113,7 @@ QList WebSslInfo::certificateChain() const WebSslInfo& WebSslInfo::operator=(const WebSslInfo & other) { - if(d) + if (d) { d->ciphers = other.d->ciphers; d->protocol = other.d->protocol; @@ -133,7 +133,7 @@ WebSslInfo& WebSslInfo::operator=(const WebSslInfo & other) bool WebSslInfo::saveTo(QMap& data) const { const bool ok = isValid(); - if(ok) + if (ok) { data.insert("ssl_in_use", true); data.insert("ssl_peer_ip", d->peerAddress.toString()); @@ -154,10 +154,10 @@ bool WebSslInfo::saveTo(QMap& data) const void WebSslInfo::restoreFrom(const QVariant& value, const QUrl& url) { - if(value.isValid() && value.type() == QVariant::Map) + if (value.isValid() && value.type() == QVariant::Map) { QMap metaData = value.toMap(); - if(metaData.value("ssl_in_use", false).toBool()) + if (metaData.value("ssl_in_use", false).toBool()) { setCertificateChain(metaData.value("ssl_peer_chain").toByteArray()); setPeerAddress(metaData.value("ssl_peer_ip").toString()); @@ -174,54 +174,54 @@ void WebSslInfo::restoreFrom(const QVariant& value, const QUrl& url) void WebSslInfo::setUrl(const QUrl &url) { - if(d) + if (d) d->url = url; } void WebSslInfo::setPeerAddress(const QString& address) { - if(d) + if (d) d->peerAddress = address; } void WebSslInfo::setParentAddress(const QString& address) { - if(d) + if (d) d->parentAddress = address; } void WebSslInfo::setProtocol(const QString& protocol) { - if(d) + if (d) d->protocol = protocol; } void WebSslInfo::setCertificateChain(const QByteArray& chain) { - if(d) + if (d) d->certificateChain = QSslCertificate::fromData(chain); } void WebSslInfo::setCiphers(const QString& ciphers) { - if(d) + if (d) d->ciphers = ciphers; } void WebSslInfo::setUsedCipherBits(const QString& bits) { - if(d) + if (d) d->usedCipherBits = bits.toInt(); } void WebSslInfo::setSupportedCipherBits(const QString& bits) { - if(d) + if (d) d->supportedCipherBits = bits.toInt(); } void WebSslInfo::setCertificateErrors(const QString& certErrors) { - if(d) + if (d) d->certErrors = certErrors; } -- cgit v1.2.1