Simplify some android code

This commit is contained in:
Tobias Fella
2023-11-11 22:59:27 +01:00
parent 2d55dca508
commit e6c8b3fa4b

View File

@@ -132,11 +132,7 @@ int ChatDocumentHandler::completionStartIndex() const
return 0; return 0;
} }
#if !defined(Q_OS_ANDROID) const qsizetype cursor = cursorPosition();
const long long cursor = cursorPosition();
#else
const auto cursor = cursorPosition();
#endif
const auto &text = getText(); const auto &text = getText();
auto start = std::min(cursor, text.size()) - 1; auto start = std::min(cursor, text.size()) - 1;