Simplify some android code
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user