From d6902786bff94261e4332dbd724d773ac605bec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Fri, 24 Aug 2012 03:19:29 +0200 Subject: [PATCH] Convert #ifdef to #if --- remote/credentials.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/remote/credentials.cpp b/remote/credentials.cpp index 4b4965c31..663d1bce5 100644 --- a/remote/credentials.cpp +++ b/remote/credentials.cpp @@ -22,7 +22,7 @@ #include #include -#ifdef ENABLE_REMOTE_WIDGETS +#if ENABLE_REMOTE_WIDGETS #include #endif @@ -46,7 +46,7 @@ public: : id(id), name(name) { - #ifdef ENABLE_REMOTE_WIDGETS + #if ENABLE_REMOTE_WIDGETS if (!QCA::isSupported(REQUIRED_FEATURES)) { kWarning() << "QCA doesn't support " << REQUIRED_FEATURES; return; @@ -68,7 +68,7 @@ public: QString id; QString name; -#ifdef ENABLE_REMOTE_WIDGETS +#if ENABLE_REMOTE_WIDGETS QCA::PublicKey publicKey; QCA::PrivateKey privateKey; #endif @@ -104,7 +104,7 @@ Credentials &Credentials::operator=(const Credentials &other) Credentials Credentials::createCredentials(const QString &name) { -#ifdef ENABLE_REMOTE_WIDGETS +#if ENABLE_REMOTE_WIDGETS if (!QCA::isSupported(REQUIRED_FEATURES)) { kWarning() << "QCA doesn't support " << REQUIRED_FEATURES; return Credentials(); @@ -138,7 +138,7 @@ TrustLevel Credentials::trustLevel() const bool Credentials::isValid() const { -#ifdef ENABLE_REMOTE_WIDGETS +#if ENABLE_REMOTE_WIDGETS if (!QCA::isSupported(REQUIRED_FEATURES)) { kWarning() << "QCA doesn't support " << REQUIRED_FEATURES; return false; @@ -170,7 +170,7 @@ QString Credentials::id() const bool Credentials::isValidSignature(const QByteArray &signature, const QByteArray &payload) { -#ifdef ENABLE_REMOTE_WIDGETS +#if ENABLE_REMOTE_WIDGETS if (!QCA::isSupported(REQUIRED_FEATURES)) { kWarning() << "QCA doesn't support " << REQUIRED_FEATURES; return false; @@ -199,7 +199,7 @@ bool Credentials::isValidSignature(const QByteArray &signature, const QByteArray bool Credentials::canSign() const { -#ifdef ENABLE_REMOTE_WIDGETS +#if ENABLE_REMOTE_WIDGETS if (!QCA::isSupported(REQUIRED_FEATURES)) { kWarning() << "QCA doesn't support " << REQUIRED_FEATURES; return false; @@ -213,7 +213,7 @@ bool Credentials::canSign() const QByteArray Credentials::signMessage(const QByteArray &message) { -#ifdef ENABLE_REMOTE_WIDGETS +#if ENABLE_REMOTE_WIDGETS if(!QCA::isSupported(REQUIRED_FEATURES)) { #ifndef NDEBUG kDebug() << "RSA not supported"; @@ -235,7 +235,7 @@ QByteArray Credentials::signMessage(const QByteArray &message) Credentials Credentials::toPublicCredentials() const { -#ifdef ENABLE_REMOTE_WIDGETS +#if ENABLE_REMOTE_WIDGETS Credentials result(*this); result.d->privateKey = QCA::PrivateKey(); return result; @@ -246,7 +246,7 @@ Credentials Credentials::toPublicCredentials() const QDataStream &operator<<(QDataStream &out, const Credentials &myObj) { -#ifdef ENABLE_REMOTE_WIDGETS +#if ENABLE_REMOTE_WIDGETS if (!QCA::isSupported(REQUIRED_FEATURES)) { kWarning() << "QCA doesn't support " << REQUIRED_FEATURES; return out; @@ -270,7 +270,7 @@ QDataStream &operator<<(QDataStream &out, const Credentials &myObj) QDataStream &operator>>(QDataStream &in, Credentials &myObj) { -#ifdef ENABLE_REMOTE_WIDGETS +#if ENABLE_REMOTE_WIDGETS if (!QCA::isSupported(REQUIRED_FEATURES)) { kWarning() << "QCA doesn't support " << REQUIRED_FEATURES; return in;