Skip to content

Commit

Permalink
Rename CondaURL::base > CondaURL::generic
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Nov 23, 2023
1 parent e7bf342 commit e73d239
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libmamba/include/mamba/specs/conda_url.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ namespace mamba::specs
explicit CondaURL(util::URL&& url);
explicit CondaURL(const util::URL& url);

auto base() const -> const util::URL&;
[[nodiscard]] auto generic() const -> const util::URL&;

using Base::scheme_is_defaulted;
using Base::scheme;
Expand Down
6 changes: 3 additions & 3 deletions libmamba/src/specs/conda_url.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ namespace mamba::specs
{
}

auto CondaURL::base() const -> const util::URL&
auto CondaURL::generic() const -> const util::URL&
{
return static_cast<const util::URL&>(*this);
}
Expand Down Expand Up @@ -506,7 +506,7 @@ namespace mamba::specs

auto operator==(const CondaURL& a, const CondaURL& b) -> bool
{
return a.base() == b.base();
return a.generic() == b.generic();
}

auto operator!=(const CondaURL& a, const CondaURL& b) -> bool
Expand All @@ -529,5 +529,5 @@ namespace mamba::specs
auto
std::hash<mamba::specs::CondaURL>::operator()(const mamba::specs::CondaURL& u) const -> std::size_t
{
return std::hash<mamba::util::URL>()(u.base());
return std::hash<mamba::util::URL>()(u.generic());
}

0 comments on commit e73d239

Please sign in to comment.