mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Get rid of deprecated ranges::view usage
This commit is contained in:
@@ -1649,7 +1649,7 @@ void DocumentData::collectLocalData(not_null<DocumentData*> local) {
|
||||
namespace Data {
|
||||
|
||||
QString FileExtension(const QString &filepath) {
|
||||
const auto reversed = ranges::view::reverse(filepath);
|
||||
const auto reversed = ranges::views::reverse(filepath);
|
||||
const auto last = ranges::find_first_of(reversed, ".\\/");
|
||||
if (last == reversed.end() || *last != '.') {
|
||||
return QString();
|
||||
|
Reference in New Issue
Block a user