Skip to content

Commit

Permalink
Fix formatting switch
Browse files Browse the repository at this point in the history
  • Loading branch information
frankosterfeld authored and RalphSteinhagen committed Apr 25, 2024
1 parent 2696900 commit 77a8245
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/core/include/URI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class URI {
fmt::arg("opt_path_slash", (_path.empty() || _path.starts_with('/')) ? "" : "/"), fmt::arg("path", _path), // path
fmt::arg("qMark", (_query.empty() || _query.starts_with('?')) ? "" : "?"), fmt::arg("query", _query)); // query
}
// clang-format om
// clang-format on

// decompose map
inline const std::unordered_map<std::string, std::optional<std::string>> &queryParamMap() const {
Expand Down Expand Up @@ -243,7 +243,7 @@ class URI {
continue;
}
const auto value = decode(_query.substr(readPos, _query.length() - readPos));
_queryMap[key] = value.empty() ? std::nullopt : std::optional(value);
_queryMap[key] = value.empty() ? std::nullopt : std::optional(value);
break;
} else {
auto key = std::string(_query.substr(readPos, _query.length() - readPos));
Expand All @@ -257,7 +257,7 @@ class URI {

// comparison operators
auto operator<=>(const URI &other) const noexcept { return _str <=> other.str(); }
bool operator==(const URI &other) const noexcept { return _str == other.str(); }
bool operator==(const URI &other) const noexcept { return _str == other.str(); }

class UriFactory {
mutable std::string _authority;
Expand All @@ -273,11 +273,11 @@ class URI {
std::unordered_map<std::string, std::optional<std::string>> _queryMap;

public:
UriFactory() = default;
UriFactory(const UriFactory &) = default;
UriFactory& operator=(const UriFactory &) = default;
UriFactory() = default;
UriFactory(const UriFactory &) = default;
UriFactory &operator=(const UriFactory &) = default;

UriFactory copy() const {
UriFactory copy() const {
return UriFactory(*this);
}

Expand Down

0 comments on commit 77a8245

Please sign in to comment.