From e6c8b3fa4b996e847df5936e339ce829351a3326 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sat, 11 Nov 2023 22:59:27 +0100 Subject: [PATCH] Simplify some android code --- src/chatdocumenthandler.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/chatdocumenthandler.cpp b/src/chatdocumenthandler.cpp index a980010f0..8fde7a8f4 100644 --- a/src/chatdocumenthandler.cpp +++ b/src/chatdocumenthandler.cpp @@ -132,11 +132,7 @@ int ChatDocumentHandler::completionStartIndex() const return 0; } -#if !defined(Q_OS_ANDROID) - const long long cursor = cursorPosition(); -#else - const auto cursor = cursorPosition(); -#endif + const qsizetype cursor = cursorPosition(); const auto &text = getText(); auto start = std::min(cursor, text.size()) - 1;