mirror of
https://github.com/transmission/transmission
synced 2024-12-27 18:18:10 +00:00
parent
3036a76beb
commit
f415de0626
1 changed files with 2 additions and 2 deletions
|
@ -188,7 +188,7 @@ static bool appendSanitizedComponent(std::string& out, std::string_view in, bool
|
|||
*setme_is_adjusted = false;
|
||||
|
||||
// remove leading spaces
|
||||
auto constexpr leading_test = [](auto ch)
|
||||
auto constexpr leading_test = [](unsigned char ch)
|
||||
{
|
||||
return isspace(ch);
|
||||
};
|
||||
|
@ -196,7 +196,7 @@ static bool appendSanitizedComponent(std::string& out, std::string_view in, bool
|
|||
in.remove_prefix(std::distance(std::begin(in), it));
|
||||
|
||||
// remove trailing spaces and '.'
|
||||
auto constexpr trailing_test = [](auto ch)
|
||||
auto constexpr trailing_test = [](unsigned char ch)
|
||||
{
|
||||
return isspace(ch) || ch == '.';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue