Skip to content

Commit a4af69a

Browse files
committed
Fix warning
1 parent d97b1d2 commit a4af69a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libmamba/src/specs/version_spec.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -539,12 +539,12 @@ namespace mamba::specs
539539
// to positive or negative glob.
540540
// The check for whether the "*" is a glob or a valid version character is poorly
541541
// defined.
542-
constexpr auto has_complex_glob = [](std::string_view str) -> bool
542+
constexpr auto has_complex_glob = [](std::string_view expr) -> bool
543543
{
544544
constexpr auto glob_suffix_len = VersionSpec::glob_suffix_str.size();
545-
return util::starts_with(str, VersionSpec::glob_pattern_str)
546-
|| (str.find(VersionSpec::glob_suffix_str)
547-
< std::max(str.size(), glob_suffix_len) - glob_suffix_len);
545+
return util::starts_with(expr, VersionSpec::glob_pattern_str)
546+
|| (expr.find(VersionSpec::glob_suffix_str)
547+
< std::max(expr.size(), glob_suffix_len) - glob_suffix_len);
548548
};
549549

550550
if (util::starts_with(str, VersionSpec::equal_str))

0 commit comments

Comments
 (0)