diff options
| author | Stefan Boberg <[email protected]> | 2022-06-10 16:02:11 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2022-06-10 16:02:11 +0200 |
| commit | 1bfd27e78e1962779997a5da5dc7639fcb74fcc1 (patch) | |
| tree | ab78d94247d25a6efbbb25facf63ed3ce98525f7 | |
| parent | extended zen print command to also handle CbPackage and CompressedBuffer form... (diff) | |
| download | zen-1bfd27e78e1962779997a5da5dc7639fcb74fcc1.tar.xz zen-1bfd27e78e1962779997a5da5dc7639fcb74fcc1.zip | |
clang-format fixes
| -rw-r--r-- | zen/cmds/print.cpp | 4 | ||||
| -rw-r--r-- | zenhttp/httpsys.cpp | 2 | ||||
| -rw-r--r-- | zenserver/frontend/frontend.cpp | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/zen/cmds/print.cpp b/zen/cmds/print.cpp index e5bb2ed4f..a8b2215a2 100644 --- a/zen/cmds/print.cpp +++ b/zen/cmds/print.cpp @@ -106,7 +106,9 @@ PrintCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv) if (Attachment.IsCompressedBinary()) { AttachmentType = "Compressed"; - AttachmentSize = fmt::format("{} ({} uncompressed)", Attachment.AsCompressedBinary().GetCompressedSize(), Attachment.AsCompressedBinary().GetRawSize()); + AttachmentSize = fmt::format("{} ({} uncompressed)", + Attachment.AsCompressedBinary().GetCompressedSize(), + Attachment.AsCompressedBinary().GetRawSize()); } else if (Attachment.IsBinary()) { diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index 023d2215e..19dba126a 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -1248,7 +1248,7 @@ HttpSysServerRequest::HttpSysServerRequest(HttpSysTransaction& Tx, HttpService& if (AcceptContentType != HttpContentType::kUnknownContentType) { - m_UriUtf8.RemoveSuffix((uint32_t) (UriSuffix8.size() + 1)); + m_UriUtf8.RemoveSuffix((uint32_t)(UriSuffix8.size() + 1)); } } } diff --git a/zenserver/frontend/frontend.cpp b/zenserver/frontend/frontend.cpp index 93e1b5e82..842587708 100644 --- a/zenserver/frontend/frontend.cpp +++ b/zenserver/frontend/frontend.cpp @@ -210,7 +210,7 @@ HttpFrontendService::HandleRequest(zen::HttpServerRequest& Request) // small subset of file extensions is allowed HttpContentType ContentType = HttpContentType::kUnknownContentType; - + if (const size_t DotIndex = Uri.rfind("."); DotIndex != Uri.npos) { const std::string_view DotExt = Uri.substr(DotIndex + 1); |