diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2021-02-22 19:25:40 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2021-02-22 21:28:00 +0200 |
commit | 48c132be8aa983165126b0641a083848dd5c6620 (patch) | |
tree | e86e514536a914c09c8e83c12d0ad46a369a86d2 /src/core/kauthorized.cpp | |
parent | 8bed00ab34e31f2b9c70026d418d923913325798 (diff) | |
download | kconfig-48c132be8aa983165126b0641a083848dd5c6620.tar.gz kconfig-48c132be8aa983165126b0641a083848dd5c6620.tar.bz2 |
Fix formatting in a couple of places after running clang-format
NO_CHANGELOG
Diffstat (limited to 'src/core/kauthorized.cpp')
-rw-r--r-- | src/core/kauthorized.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/core/kauthorized.cpp b/src/core/kauthorized.cpp index a08586c5..46b33ab2 100644 --- a/src/core/kauthorized.cpp +++ b/src/core/kauthorized.cpp @@ -77,11 +77,14 @@ public: bool baseMatch(const QUrl &url, const QString &protClass) const { if (baseProtWildCard) { - if (!baseProt.isEmpty() && !url.scheme().startsWith(baseProt) && (protClass.isEmpty() || (protClass != baseProt))) { + if (!baseProt.isEmpty() // + && !url.scheme().startsWith(baseProt) // + && (protClass.isEmpty() || (protClass != baseProt))) { return false; } } else { - if ((url.scheme() != baseProt) && (protClass.isEmpty() || (protClass != baseProt))) { + if (url.scheme() != baseProt // + && (protClass.isEmpty() || (protClass != baseProt))) { return false; } } @@ -109,15 +112,19 @@ public: bool destMatch(const QUrl &url, const QString &protClass, const QUrl &base, const QString &baseClass) const { if (destProtEqual) { - if ((url.scheme() != base.scheme()) && (protClass.isEmpty() || baseClass.isEmpty() || protClass != baseClass)) { + if (url.scheme() != base.scheme() // + && (protClass.isEmpty() || baseClass.isEmpty() || protClass != baseClass)) { return false; } } else if (destProtWildCard) { - if (!destProt.isEmpty() && !url.scheme().startsWith(destProt) && (protClass.isEmpty() || (protClass != destProt))) { + if (!destProt.isEmpty() // + && !url.scheme().startsWith(destProt) // + && (protClass.isEmpty() || (protClass != destProt))) { return false; } } else { - if ((url.scheme() != destProt) && (protClass.isEmpty() || (protClass != destProt))) { + if (url.scheme() != destProt // + && (protClass.isEmpty() || (protClass != destProt))) { return false; } } |