Skip to content

Fix a compiler warning

Ahmad Samir requested to merge work/ahmad/fix-compiler-warn into master

/home/ahmad/dev/ktexteditor/src/render/katerenderer.cpp:972:45: warning: loop variable ‘inlineNote’ of type ‘const KTextEditor::InlineNote&’ binds to a temporary constructed from type ‘const KateInlineNoteData’ [-Wrange-loop-construct] 972 | for (const KTextEditor::InlineNote &inlineNote : inlineNotes) { | ^~~~~~~~~~ /home/ahmad/dev/ktexteditor/src/render/katerenderer.cpp:972:45: note: use non-reference type ‘const KTextEditor::InlineNote’ to make the copy explicit or ‘const KateInlineNoteData&’ to prevent copying

Merge request reports

Loading