Fix build for old Qt version.

This commit is contained in:
John Preston 2019-07-18 21:52:13 +02:00
parent d02617867c
commit c0f8ab8da0
1 changed files with 3 additions and 2 deletions

View File

@ -148,8 +148,9 @@ std::atomic<int> GlobalAtomicRequestId = 0;
&& (code != '-');
};
const auto inner = Base64UrlInner(password);
const auto i = std::find_if(inner.begin(), inner.end(), bad);
return (i == inner.end());
const auto begin = inner.data();
const auto end = begin + inner.size();
return (std::find_if(begin, end, bad) == end);
}
[[nodiscard]] ProxyData::Status Base64UrlMtprotoPasswordStatus(