WSL/SLF GitLab Repository

Commit e6a55a30 authored by Mathias Bavay's avatar Mathias Bavay
Browse files

Another warning fix

Somehow, we have to accept that the maximum number of lines in an ini file fits
within an "int" (Qt does a mess in its types between long long and int for the
handling of line numbers)
parent fe5591d4
...@@ -976,7 +976,7 @@ int PreviewWindow::getCurrentLineNumber() ...@@ -976,7 +976,7 @@ int PreviewWindow::getCurrentLineNumber()
int PreviewWindow::getNrOfSelectedLines() int PreviewWindow::getNrOfSelectedLines()
{ {
const QTextCursor cursor( getCurrentEditor()->textCursor() ); const QTextCursor cursor( getCurrentEditor()->textCursor() );
return cursor.selectedText().split(Cst::u_paragraph).count(); return static_cast<int>( cursor.selectedText().split(Cst::u_paragraph).count() );
} }
/** /**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment