Constify.

This commit is contained in:
Richard Kimberly Heck 2018-05-04 15:42:01 -04:00
parent 7f4f14786d
commit a2030abab9

View File

@ -400,11 +400,11 @@ void GuiCharacter::updateContents()
if (bufferview()->cursor().selection()) { if (bufferview()->cursor().selection()) {
Font font = bufferview()->cursor().real_current_font; Font font = bufferview()->cursor().real_current_font;
FontInfo fi = font.fontInfo(); FontInfo fi = font.fontInfo();
BufferParams const bp = buffer().masterParams(); BufferParams const & bp = buffer().masterParams();
// Check if each font attribute is constant for the selection range. // Check if each font attribute is constant for the selection range.
DocIterator from = bufferview()->cursor().selectionBegin(); DocIterator const from = bufferview()->cursor().selectionBegin();
DocIterator to = bufferview()->cursor().selectionEnd(); DocIterator const to = bufferview()->cursor().selectionEnd();
for (DocIterator dit = from ; dit != to && !dit.atEnd(); ) { for (DocIterator dit = from ; dit != to && !dit.atEnd(); ) {
if (!dit.inTexted()) { if (!dit.inTexted()) {
dit.forwardPos(); dit.forwardPos();