Skip to content

Commit 33bdf08

Browse files
committed
#3467 lsp: fix build warning
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
1 parent 0f1e954 commit 33bdf08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/widgets/qownnotesmarkdowntextedit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2156,7 +2156,7 @@ bool QOwnNotesMarkdownTextEdit::viewportEvent(QEvent *event) {
21562156

21572157
// Find the first diagnostic selection that covers the cursor position
21582158
for (const QTextEdit::ExtraSelection &selection :
2159-
qAsConst(_markdownLspDiagnosticsSelections)) {
2159+
std::as_const(_markdownLspDiagnosticsSelections)) {
21602160
const int selStart = selection.cursor.selectionStart();
21612161
const int selEnd = selection.cursor.selectionEnd();
21622162
if (cursorPos >= selStart && cursorPos <= selEnd) {

0 commit comments

Comments
 (0)