mirror of
https://github.com/transmission/transmission
synced 2024-12-28 10:38:45 +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;
|
*setme_is_adjusted = false;
|
||||||
|
|
||||||
// remove leading spaces
|
// remove leading spaces
|
||||||
auto constexpr leading_test = [](auto ch)
|
auto constexpr leading_test = [](unsigned char ch)
|
||||||
{
|
{
|
||||||
return isspace(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));
|
in.remove_prefix(std::distance(std::begin(in), it));
|
||||||
|
|
||||||
// remove trailing spaces and '.'
|
// remove trailing spaces and '.'
|
||||||
auto constexpr trailing_test = [](auto ch)
|
auto constexpr trailing_test = [](unsigned char ch)
|
||||||
{
|
{
|
||||||
return isspace(ch) || ch == '.';
|
return isspace(ch) || ch == '.';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue