mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Constify.
This commit is contained in:
parent
7f4f14786d
commit
a2030abab9
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user